bug: hotkeysEnabled state is set but never checked before executing hotkeys
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- frontend
Direzione di ricerca
Inizia nel componente delle attività, individuando l’handler useEffect per gli hotkey e le chiamate a useHotkeys descritte nell’issue. Controlla come hotkeysEnabled viene impostato dagli handler di entrata e uscita del mouse, quindi verifica che gli hotkey funzionino solo sopra la tabella delle attività e siano disabilitati al di fuori di essa.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
https://github.com/user-attachments/assets/6eeacafc-9ed0-421a-9f52-3985c2f6711a
- I want to work on this issue.
- Lingua principale
- TypeScript
- Stelle
- 37
- Fork
- 76
- Merge medio
- 3g 7h
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CCExtractor/ccsync
-
GET /tasks is not serialized and Taskwarrior data isolation may race through shared /root/.task Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
CCExtractor/ccsync#471 · 3 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
CCExtractor/ccsync#440 · 3 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
CCExtractor/ccsync#433 · 2 commenti ·
-
backend complex enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
CCExtractor/ccsync#367 · 2 commenti ·
-
frontend good first issue help wanted test
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
CCExtractor/ccsync#300 · 14 commenti ·
Tutte le issue di CCExtractor/ccsync
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
AOSSIE-Org/DebateAI#582 · 2 commenti ·