This commit is contained in:
2023-02-02 06:08:50 -06:00
parent e0affc82d4
commit 5ff74e851c
5 changed files with 183 additions and 118 deletions

View File

@@ -138,7 +138,10 @@ func (w *PromptForTagWiddle) Measure() {
}
func (w *PromptForTagWiddle) handleTermboxEvent(msg termbox.Event) wandle.Cmd {
if msg.Key == termbox.KeyEnter {
if msg.Key == termbox.KeyEsc {
w.Done()
return wandle.EmptyCmd
} else if msg.Key == termbox.KeyEnter {
if w.keyInput.IsEditable() {
w.keyInput.SetActive(false)
w.keyInput.SetEditable(false)