ArchGPT / insomnium

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

Open thgcode opened 3 months ago

thgcode commented 3 months ago

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: