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

[feature] keyboard navigation support (suggested only for sortables with handles) #2391

Open
ARitz-Cracker opened this issue Jul 15, 2024 · 0 comments

Comments

@ARitz-Cracker
Copy link

Is your feature request related to a problem? Please describe.
Things cannot be moved around with keyboard navigation.

Describe the solution you'd like
A relatively simple and easy solution seems to be:

  1. Set the tab-index to all elements which match the optional class specified in the "handle" option set to 0 allowing it to be focus-able with tab navigation.
  2. Add a keypress event listener on the handle which can move the thing with up/arrow keys.

Describe alternatives you've considered
I may create my own npm package which facilitates this, though it would be useful to have this upstream.

Additional context
I'm primarily creating this issue wondering, if I where to submit a PR for this feature, would it be merged?

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

No branches or pull requests

1 participant