From bdee73bc54327aaedda0a99427a98491aaa85753 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 13 Aug 2016 21:26:36 +0300 Subject: [PATCH] add error message for unhandled keys --- ui.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui.go b/ui.go index 1f7202e..4d04375 100644 --- a/ui.go +++ b/ui.go @@ -365,6 +365,10 @@ func (ui *UI) getExpr() Expr { case termbox.KeyEsc: acc = nil return r + default: + ui.message = fmt.Sprintf("unhandled key") + acc = nil + return r } }