-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
Describe the bug
The hotkeysEnabled state in the tasks component is set via mouse enter/leave handlers but is never actually checked before executing hotkey actions, it means hotkeys work globally on the page regardless of mouse position.
To Reproduce
Steps to reproduce the behavior:
- Go to
http://localhost:5173/home - Hover your mouse outside the task table
- Press f key
- See that the search input still gets focused
- Press r key
- See that sync still triggers
Expected behavior
- Hotkeys (f, p, ArrowUp, ArrowDown, Enter, etc.) should only work when the mouse is hovering over the task table, when mouse leaves the task table, hotkeys should be disabled
Root cause
hotkeysEnabledstate is defined and set via onMouseEnter/onMouseLeave but the manualuseEffectkeyboard handler and all useHotkeys calls does not checkhotkeysEnabledbefore executing
Desktop (please complete the following information):
- OS: macOS
- Browser: Chrome
- Version: Latest
video:
Screen.Recording.2026-01-22.at.1.18.10.AM.mov
- I want to work on this issue.
Metadata
Metadata
Assignees
Labels
No labels