How could I combine react-hotkeys-hook
with focused input element?
#1112
Unanswered
richardnguyen99
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'm experiencing a recurring issue wherein Input or Textarea fields become unresponsive while typing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a scenario that
react-hotkeys-hook
doesn't work properly when a page has an input element. For example, myApp.tsx
:If there is no modal, this works just fine. However, one of my modal types has an input element. When there is one modal with an input element, hotkeys don't work anymore. My temporary fix is to click outside, unfocus the input and set the modal to inactive. However, there are some operations that requires the modal to be active such as closing, maximizing, etc.
How can I simply use hotkeys while input elements are being focused? Thanks
Beta Was this translation helpful? Give feedback.
All reactions