Insomnium is a fast local API testing tool that is privacy-focused and 100% local. For testing GraphQL, REST, WebSockets and gRPC. This is a fork of Kong/insomnia
MIT License
3.3k
stars
123
forks
source link
Accessibility: Backport modal autofocus in latest insomnia version #166
This pull request backports Pull request 6945 on Insomnia. This pull request adds a focus scope to the modals and autofocuses it, making a screen reader (for example NVDA) moving the cursor inside of the modal and speaking its contents automatically, instead of requiring the user to guess if the modal was opened and manually moving the keyboard to it.
Tests performed:
With the code on the main branch:
With NVDA active, opened insomnium and pressed CTRL+, to open the preferences window.
NVDA does not identified the modal, requiring the user to press CTRL+HOME and space to open id, the arrow keys caused NVDA to speak other elements not related with the modal.
With the code on this pull request:
With NVDA active, opened Insomnium and pressed CTRL+, to open the preferences window.
NVDA instantly started to speak the modal contents and the arrow keys worked to speak the modal elements.
This pull request backports Pull request 6945 on Insomnia. This pull request adds a focus scope to the modals and autofocuses it, making a screen reader (for example NVDA) moving the cursor inside of the modal and speaking its contents automatically, instead of requiring the user to guess if the modal was opened and manually moving the keyboard to it.
Tests performed:
With the code on the main branch:
With the code on this pull request: