ai / ai/keyux

Demo: `Esc` hides focus instead of returns it back

Aperta
#32 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
546
Fork
28
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**OS:** Fedora 40
**Browser:** Firefox 128.0, Chromium 126.0

It seems to me that incorrect behaviour is taking place here. When the `Esc` key is pressed, the focus does not return to the body of the first element.

But I'm sure this may depend on the specific use case, so I have an idea to provide both behaviours via some "configuration" variables, if the current lib implementation makes it easy to implement this.

ER:
- return focus to the top

AR:
- hide focus

Screencast:

https://github.com/user-attachments/assets/418494a8-732b-43b3-bc24-8e17bc4a2c96

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.