Closed tani-shi closed 1 month ago
When I do pressing multiple times a some key with keeping pressing a special key (e.g. cmd + z), normal hotkey (e.g. ArrowUp, ArrowDown) will be stuck and not working.
export const appHotkeys = { ... undo: { label: 'table.undo', command: platformSelect({ mac: '⌘ Z' }, 'Ctrl+Z'), }, ... } satisfies HotkeysConfig
useHotkeys( [ 'ArrowUp', '⇧ ArrowUp', 'ArrowDown', '⇧ ArrowDown', 'ArrowLeft', '⇧ ArrowLeft', 'ArrowRight', '⇧ ArrowRight', ], (e) => { // won't be fired }, [...] )
No response
2.6.2
SUI-461 Bug: useHotkeys and multiple pressings with special keys will make a stuck normal hotkey
Thanks for reporting, will investigate asap.
Fixed in 2.8.2
Description
When I do pressing multiple times a some key with keeping pressing a special key (e.g. cmd + z), normal hotkey (e.g. ArrowUp, ArrowDown) will be stuck and not working.
Link to Reproduction
No response
Steps to reproduce
Saas UI Version
2.6.2
Chakra UI Version
No response
Browser
No response
Operating System
Additional Information
No response