From c5ed6dc0bafb53f246adbc594aa20a17e8252a14 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Mon, 28 Dec 2015 22:19:08 -0600 Subject: [PATCH] Adding Alpha-Numeric Tester --- termbox_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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