greena13/react-hotkeys

[BUG] hotkeys not working after pressing tab

Opened this issue · 2 comments

I'm using a key to open a dialog containing a list of buttons. When and only when I press tab to select one of these buttons then the hotkeys stop working.
In order to make them work again I have to change browser tab.

HotKeys wraps the entire App. I believe it to be a focus problem. But I cannot see how

ibash commented

Hi @alessio-de-padova give this fork a try and see if it fixes it: https://github.com/ibash/react-hotkeys

Sounds similar to this: ibash@23c363b

Thanks @ibash.

Your suggestion did the trick. Tried your fork and it works! What was the problem?