From d2414f758090f70b2c220320ee4f8f3025e89c1d Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sun, 26 Jul 2020 00:24:04 +0300 Subject: [PATCH] escape key disables key binding lookup Related #361 --- ui.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui.go b/ui.go index cfaa2b0..97b36fb 100644 --- a/ui.go +++ b/ui.go @@ -870,6 +870,8 @@ func (ui *ui) readEvent(ch chan<- expr, ev termbox.Event) { ch <- draw ui.keyAcc = nil ui.keyCount = nil + ui.menuBuf = nil + return } ui.keyAcc = append(ui.keyAcc, []rune(val)...) }