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

Additional keyboard shortcuts for the navigateRegions component #8005

Merged
merged 1 commit into from
Aug 9, 2018

Conversation

afercia
Copy link
Contributor

@afercia afercia commented Jul 17, 2018

Description

This PR adds additional keyboard shortcuts to navigate through the navigateRegions sections. See the related issue #3218 where testing with different keyboard layouts proved the current shortcut Ctrl+backtick is not usable with all keyboard layouts. At the very least, the backtick key is not available on the Italian, Dutch, Finnish, French, and likely more keyboard layouts.

The additional shortcuts are:

  • shift+alt+n to go to the next region
  • shift+alt+p to go to the previous region
  • the previous shortcuts are preserved

I've tested this on the following browsers:

  • Mac: Firefox, Chrome, Safari, Opera
  • Windows 10: Firefox, Chrome, Edge, IE11

and the new shortcuts seem to work without any conflict. Pending some more testing from the a11y team and anyone willing to test 🙂Some testing on a GNU-Linux distro would be nice.

If / when merged, I'd suggest to move #3218 to the accessibility Project instead of closing it, as the original idea of providing a mechanism to re-map and customize the keyboard shortcuts could be a nice improvement for the future.

@afercia afercia added the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label Jul 17, 2018
@samikeijonen
Copy link
Contributor

Confirm that shift+alt+n and shift+alt+p works on Mac Chrome. When trying to test other browsers Gutenberg decided to crash :)

@afercia afercia force-pushed the update/navigate-regions-additional-shortcuts branch from 7fdc6b5 to 8b7fef0 Compare August 1, 2018 17:23
@afercia
Copy link
Contributor Author

afercia commented Aug 1, 2018

Rebased to allow testing (the build was failing).

@afercia afercia force-pushed the update/navigate-regions-additional-shortcuts branch from 8b7fef0 to d008ca6 Compare August 8, 2018 17:35
@afercia
Copy link
Contributor Author

afercia commented Aug 8, 2018

Rebased. Let's see if the builds pass now.

@afercia
Copy link
Contributor Author

afercia commented Aug 8, 2018

Would appreciate a quick review, thanks! 🙂

@afercia afercia requested a review from nerrad August 8, 2018 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants