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

Add customizable keybind for closing modals #142

Open ian-h-chamberlain opened 5 months ago

ian-h-chamberlain commented 5 months ago

Ref #128 Original upstream issue https://github.com/Kong/insomnia/issues/4877

Adds a customizable shortcut for closing modal windows, which was previously hardcoded to Escape. This allows users with Vim keybindings to rebind it to something else, particularly for Environment editor, since Escape is used to exit insert mode with Vim keybindings.

There are a couple other places that had 'Escape' hardcoded for some kind of keydown event, but it seems mostly harmless — AFAIK this was the biggest painful hardcoded shortcut.