Fix for keys with -1

fixes #83
This commit is contained in:
John Goerzen 2008-07-16 14:12:38 -05:00
parent bfb694c4ac
commit 1a15b6964f

View File

@ -375,7 +375,7 @@ class Blinkenlights(BlinkenBase, UIBase):
sys.exit(0)
def keypress(s, key):
if key > 255:
if key < 1 or key > 255:
return
if chr(key) == 'q':