react-images icon indicating copy to clipboard operation
react-images copied to clipboard

Allow fullscreen but disable hotkeys

Open noetix opened this issue 4 years ago • 1 comments

I've built a custom view that includes a form, however when typing f in the input box fullscreen mode enables.

Would it be possible to either:

  • allow configuration to disable hotkeys but still allow fullscreen mode via the button; or
  • ideally, check the event target node type to ignore form inputs

Happy to work on a PR but would like a direction before starting.

noetix avatar Feb 26 '20 23:02 noetix

I ran into this as well. As a workaround, I added an event.preventDefault() in my input change handler, which prevented the F from triggering fullscreen mode.

vgmcglaughlin avatar May 08 '20 00:05 vgmcglaughlin