Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

bug: hotkeysEnabled state is set but never checked before executing hotkeys

Aperta
#425 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

enhancement frontend

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:

  1. Go to http://localhost:5173/home
  2. Hover your mouse outside the task table
  3. Press f key
  4. See that the search input still gets focused
  5. Press r key
  6. 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

  • hotkeysEnabled state is defined and set via onMouseEnter/onMouseLeave but the manual useEffect keyboard handler and all useHotkeys calls does not check hotkeysEnabled before 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CCExtractor/ccsync

Tutte le issue di CCExtractor/ccsync

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.