charmbracelet / huh

Build terminal forms and prompts 🤷🏻‍♀️
MIT License
4.18k stars 113 forks source link

fix: Fix invalid order of event handling in input/text fields #284

Closed Sculas closed 2 months ago

Sculas commented 3 months ago

Follow up of charmbracelet/bubbletea#1041, although they do not directly require each other.

Key binds should be checked before the key event is accepted as user input. Otherwise, control sequences or other keys might be printed instead of being interpreted as a key bind. See the above-mentioned PR for more information.

maaslalani commented 2 months ago

Thanks so much for the contribution!!