TanStack Hotkeys version
v0.1.3
Framework/Library version
React v18.3.1
Describe the bug and the steps to reproduce it
// these work
useHotkey("=", () => {});
useHotkey("-", () => {});
// none of these work
useHotkey("+", () => {});
useHotkey("Mod++", () => {});
useHotkey("Mod+Shift+=", () => {});
useHotkey("_", () => {});
useHotkey("Mod+_", () => {});
useHotkey("Mod+Shift+-", () => {});
It should be possible to register these, although I assume Mod++ will prove tricky since + is used in the template literal types for chaining. But Mod+Shift+= does not work either.
We would like to use Mod+Shift+= and Mod+Shift+- in our code base.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://codesandbox.io/p/github/AleksandrHovhannisyan/useHotkey-bug-report/main?file=%2Fsrc%2Findex.tsx&workspaceId=ws_EYV7eQpntkPhtWonNS8z6x
Screenshots or Videos (Optional)
Do you intend to try to help solve this bug with your own PR?
Maybe, I'll investigate and start debugging
Terms & Code of Conduct