Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] hotkeys not working after pressing tab #330

Open
alessio-de-padova opened this issue Jan 26, 2022 · 2 comments
Open

[BUG] hotkeys not working after pressing tab #330

alessio-de-padova opened this issue Jan 26, 2022 · 2 comments

Comments

@alessio-de-padova
Copy link

alessio-de-padova commented Jan 26, 2022

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
Copy link

ibash commented Jan 26, 2022

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

@alessio-de-padova
Copy link
Author

Thanks @ibash.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants