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 accessibility #42

Open
dave-doty opened this issue Dec 15, 2019 · 2 comments
Open

keyboard accessibility #42

dave-doty opened this issue Dec 15, 2019 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dave-doty
Copy link
Member

Make all controls keyboard accessible:

https://www.w3.org/TR/WCAG21/#keyboard-accessible

@dave-doty dave-doty added enhancement New feature or request help wanted Extra attention is needed labels Dec 15, 2019
@dave-doty
Copy link
Member Author

One difficulty is that many of the current listeners listen for clicks on SVG elements, but there's no notion of keyboard pressing on an SVG element. So it would need to define some notion of the "currently active" element (distinct from the existing notion of selecting objects, since only one object should be active at a time), and then listening document-wide for a keyboard event and dispatching an Action based on the key code and currently active element.

@dave-doty
Copy link
Member Author

Switching to this SVG pan zoom library would help since it supports keyboard panning: https://github.com/anvaka/panzoom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant