Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard support #1

Open
joshwcomeau opened this issue Mar 6, 2021 · 3 comments
Open

Keyboard support #1

joshwcomeau opened this issue Mar 6, 2021 · 3 comments
Labels

Comments

@joshwcomeau
Copy link

As far as I can tell, the panels can only be resized by using a pointer device, like a mouse. It would be awesome if the panels could also be resized using a keyboard!

I imagine that the dividers could be buttons instead of divs, and when focused, the arrow keys could resize the panels (maybe it could jump in increments of 10px at a time, to make it a bit less tedious).

I'm excited about this project and I'd be happy to promote it, if it was a bit more accessible!

Thanks for open-sourcing your work 😄

@mlejva
Copy link
Contributor

mlejva commented Mar 6, 2021

Support for the keyboard is actually planned! We're using Splitter in the next version of Devbook and we want almost everything to be controllable using a keyboard. Eventually, we will add it to Splitter.

When you say if it was a bit more accessible do you have something else on your mind besides the keyboard use-case you described?

@mlejva mlejva added the feature label Mar 6, 2021
@joshwcomeau
Copy link
Author

Awesome 😄 Thrilled to hear it! Thanks for the quick reply.

And nope — the keyboard stuff I mentioned is the only accessibility issue I'm aware of (though I'm definitely not an expert).

@martonlanga
Copy link

martonlanga commented Mar 18, 2021

This could also be achieved by having a controlled Splitter and changing the tile sizes manually when the correct keyboard shortcut is pressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants