Adding Alpha-Numeric Tester

This commit is contained in:
Brian Buller 2015-12-28 22:19:08 -06:00
parent 95d2a88a7c
commit c5ed6dc0ba
1 changed files with 1 additions and 1 deletions

View File

@ -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