JohannesKlauss / react-hotkeys-hook

React hook for using keyboard shortcuts in components.
https://react-hotkeys-hook.vercel.app/
MIT License
2.56k stars 112 forks source link

[BUG] don't trigger hot keys when input focus #1177

Closed luke358 closed 1 month ago

luke358 commented 1 month ago

Describe the bug don't trigger hot keys when input focus

To Reproduce Steps to reproduce the behavior:

  1. Go to 'focus input'
  2. Click on 'esc'
  3. see console

Please try and add a codesandbox or stackblitz to reproduce the bug: <-- Link to reproducable --> codesandbox Expected behavior trigger hot keys

JohannesKlauss commented 1 month ago

Please consult the documentation, there is an option to disable this behavior