react-hotkeys not working when HMR is activated #759

Closed
opened 2025-08-09 17:17:34 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @raphi011 on 5/16/2017

In my project I'm using react-hotkeys to handle hotkeys such as F1, ctrl+s, etc which are normally used by the browser. These work as intended when the HMR feature is deactivated, but when I activate it the handlers don't get called and the browser handles them (and e.g. opening the save dialog).

This is annoying while developing because to test them I have to deactivate HMR.

I have no clue why this is happening, does anyone have a similar issue?

*Originally created by @raphi011 on 5/16/2017* In my project I'm using react-hotkeys to handle hotkeys such as F1, ctrl+s, etc which are normally used by the browser. These work as intended when the HMR feature is deactivated, but when I activate it the handlers don't get called and the browser handles them (and e.g. opening the save dialog). This is annoying while developing because to test them I have to deactivate HMR. I have no clue why this is happening, does anyone have a similar issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#759
No description provided.