andlabs / andlabs/ui

Access to higher-fidelity events for TextField

Aperta
#43 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
8.4k
Fork
639
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

At the moment, `TextField` only supports the `OnChanged` event callback, which triggers every time the user makes an edit to the field (often just a single character change). It is hard to build useful features on top of this, because you do not know if the user pressed a key, pasted, released a key, erased a character, etc. Furthermore, you cannot detect actions such as the user pressing the enter key in the field, because this does not change the contents of the text field. Having a finer-grained set of events for `TextField` (`keyUp` and `keyDown` come to mind) would be extremely useful, and would enable much richer interactions with input fields.

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.