Skip to content

ctrl + z is unstable (alternative)#4135

Closed
sergeyteleshev wants to merge 1 commit intodevelfrom
3815-ctrl-z-is-unstable-alternative
Closed

ctrl + z is unstable (alternative)#4135
sergeyteleshev wants to merge 1 commit intodevelfrom
3815-ctrl-z-is-unstable-alternative

Conversation

@sergeyteleshev
Copy link
Contributor

closes #3815


return isObjectsEqual(hotkey, handler);
// modifiers are not checked by the library cause it has a bug: https://github.com/JohannesKlauss/react-hotkeys-hook/issues/1318
return isObjectsEqual(hotkey, handler) && matchesHotkeyModifiers(event, hotkey);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug is on the lib side. The issue here is that it fires the event handler on almost every key press because it does not consider modifiers (Ctrl, Cmd, Alt, etc.).

@sergeyteleshev sergeyteleshev deleted the 3815-ctrl-z-is-unstable-alternative branch February 23, 2026 15:47
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

Successfully merging this pull request may close these issues.

ctrl + z is unstable

2 participants