diff --git a/termbox_util.go b/termbox_util.go index 55d5072..80d6426 100644 --- a/termbox_util.go +++ b/termbox_util.go @@ -23,7 +23,7 @@ const ( // KeyIsAlphaNumeric Returns whether the termbox event is an // Alpha-Numeric Key Press -func KeyIsAlphaNumeric(event termbox.Event) { +func KeyIsAlphaNumeric(event termbox.Event) bool { k := event.Ch if (k >= 'a' && k <= 'z') || (k >= 'A' && k <= 'Z') || (k >= '0' && k <= '9') { return true