add error message for unhandled keys

This commit is contained in:
Gokcehan 2016-08-13 21:26:36 +03:00
parent be7933136b
commit bdee73bc54

4
ui.go
View File

@ -365,6 +365,10 @@ func (ui *UI) getExpr() Expr {
case termbox.KeyEsc: case termbox.KeyEsc:
acc = nil acc = nil
return r return r
default:
ui.message = fmt.Sprintf("unhandled key")
acc = nil
return r
} }
} }