Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/inline_edit/inline_edit_form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export const EuiInlineEditForm: FunctionComponent<EuiInlineEditFormProps> = ({
saveInlineEditValue();
break;
case keys.ESCAPE:
event.preventDefault(); // NVDA will trigger Browse mode otherwise
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After testing, this fix isn't changing NVDA's behavior, but that's okay. I tested NVDA on a basic input form on MDN's docs pages for a benchmark, and found the "two-step" process to be native behavior.

If a user is moving through the page using arrow keys, NVDA doesn't automatically toggle to Focus made and let users enter text into an input. They must press Enter to kick the screen reader into Focus mode to type into the input. Pressing ESC toggles the screen reader back to Browser mode at this point.

Your implementation is following native behavior, so I don't see a need to make a change from what's being done here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gah - if it's not affecting NVDA or doing anything, I should remove the line in that case. Will push up a reversion in the main feature branch

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the nature of screen reader testing. Try, fix, revert, try again. :)

cancelInlineEdit();
break;
}
Expand Down