-
Notifications
You must be signed in to change notification settings - Fork 356
[SR] Allow using control + shift + arrow keys for NVDA #2257
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
Conversation
…eys for NVDA todo Issue: none Test plan: todo
…+ shift + arrow keys for NVDA
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (5071aac) and published it to npm. You Example: pnpm add @khanacademy/perseus@PR2257 If you are working in Khan Academy's webapp, you can run: ./dev/tools/bump_perseus_version.sh -t PR2257 |
Size Change: +15 B (0%) Total Size: 735 kB
ℹ️ View Unchanged
|
Question, does this solution still work for screen reader users who have different modifier keys set or Voiceover? 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense! Thank you :)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @khanacademy/[email protected] ### Patch Changes - [#2309](#2309) [`7be7a42d6`](7be7a42) Thanks [@nishasy](https://github.com/nishasy)! - [SR] Update graph elements so their aria-describedby is read in non-Chrome browsers - [#2257](#2257) [`1e67022c9`](1e67022) Thanks [@nishasy](https://github.com/nishasy)! - [SR] Allow using control + shift + arrow keys for NVDA ## @khanacademy/[email protected] ### Patch Changes - Updated dependencies \[[`7be7a42d6`](7be7a42), [`1e67022c9`](1e67022)]: - @khanacademy/[email protected]
Summary:
NVDA takes control of inputs in its default mode, so users can't use just the arrow keys to move the interactive elements on the graph. We want to allow using modifier key + control + shift + arrow keys to move interactive elements on the graph.
Note: This already works with the modifier key + shift + arrow keys (no control), but holding down shift makes it so that the amount the element moves is 4x more than without shift.
Note 2: When using NVDA, you can get the same keyboard experience as not using a screen reader (i.e. move the points with arrow keys only) if you go into focus mode (NVDA key + space bar).
Implemented:
Issue: https://khanacademy.atlassian.net/browse/LEMS-2874
Test plan:
yarn jest packages/perseus/src/widgets/interactive-graphs/interactive-graph.test.tsx
Storybook
http://localhost:6006/?path=/docs/perseuseditor-widgets-interactive-graph--docs