insomnia/packages
James Gatz fac2627d69
Replace the KeyboardBinder with hooks (#4937)
* Add keyboard handler hook

* use the hook in all functional components

* update package-lock.json

* split global keys from app.tsx

* flatten gql explorer

* gql explorer fc

* oops

* use fn updater in setState

* remove keyboard-binder from gql explorer

* graphql-editor to fc

* remove keyboard binder from graphql-editor

* req switcher modal fc

* fix show hide modal

* hotkey hook naming pass

* modal fc

* remove unused onKeyDown prop from modal

* use the label instead of key name

* request-url-bar send request with cmd+d

* stop propagation in modals

* cleanup

* use the keybind hook on response viewer

* use the keybind hook on action-bar

* use document.body for handling dropdown navigation via keyboard

* use global shortcuts for request switcher

* use ModalHandle

* remove unused closeOnKeyCodes

* remove KeydownBinder from modal

* remove KeyDownBinder class

* remove auto-focus in modal component

* define cascade for keymaps in code-editor

* fix key-combination-modal

* remove onCancel and fix export

* remove unused ref

* fix types

* remove recursive hack on modals

* nitpick: naming

* checkpoint - 1

* fix hot key labels

* checkpoint

* some more type fixes

* simplify shortcuts.tsx and fix types

* add key combo types

* add key combo fc

* fix type

* rename definition to description

* remove close modal and close dropdown hotkeys

* add migration for removing hotkeys

* mock the keydown-binder in the test

* use a function to get the element to bind

* refactor search

* allow autocomplete on editor

* add event.code in keyboard keys

* fix lint

* remove verbose introspection modal

* use the new keybinder in request-switcher-modal

* typo in gql editor

* fix esc on editable

* use dot property access

* stop editor handling escape keys

Co-authored-by: jackkav <jackkav@gmail.com>
2022-09-28 16:55:11 +00:00
..
insomnia Replace the KeyboardBinder with hooks (#4937) 2022-09-28 16:55:11 +00:00
insomnia-common Replace the KeyboardBinder with hooks (#4937) 2022-09-28 16:55:11 +00:00
insomnia-components Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
insomnia-config Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
insomnia-cookies Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
insomnia-importers Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
insomnia-inso Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
insomnia-prettify Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
insomnia-send-request Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
insomnia-smoke-test Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
insomnia-testing Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
insomnia-url Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
insomnia-xpath Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
openapi-2-kong Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00