escape key disables key binding lookup

Related #361
This commit is contained in:
Gokcehan 2020-07-26 00:24:04 +03:00
parent 8be63a9c83
commit d2414f7580

2
ui.go
View File

@ -870,6 +870,8 @@ func (ui *ui) readEvent(ch chan<- expr, ev termbox.Event) {
ch <- draw ch <- draw
ui.keyAcc = nil ui.keyAcc = nil
ui.keyCount = nil ui.keyCount = nil
ui.menuBuf = nil
return
} }
ui.keyAcc = append(ui.keyAcc, []rune(val)...) ui.keyAcc = append(ui.keyAcc, []rune(val)...)
} }