1 comment (1 comment)0 reactions (0 reactions)0 assignees (0 assignees)TypeScript22 forks (22 forks)github user discovery
dependenciesenhancementhelp wanted
Repository metrics
- Stars
- 442 stars (442 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
When the command key is used as a modifier it doesn't seem to allow other shortcuts to fire until the command key has been lifted again.
See example:
https://codepen.io/stevenlundyseesaw/pen/LYEdVBL?editors=0010
Command left and right should move the circle left and right without having to lift the command key
If you change it to another modifier (alt, shift) it works as expected
Contributor guide
- Research direction
- Investigate how the command key is handled as a modifier in the key event listeners. Check if the keydown event for the command key is preventing subsequent keydown events for other keys from firing. Look into the platform specific handling of modifier keys (especially on macOS) and ensure that the command key's 'sticky' behavior is not causing the issue.
- Tech stack
- typescriptreact
- Domain
- frontend
- Issue type
- Bug
- Prerequisites
- GitReact