summaryrefslogtreecommitdiff
path: root/src/keyboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboard.py')
-rw-r--r--src/keyboard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.py b/src/keyboard.py
index bf10ab8a..5f7411c1 100644
--- a/src/keyboard.py
+++ b/src/keyboard.py
@@ -42,7 +42,7 @@ def read_char(s):
see http://en.wikipedia.org/wiki/UTF-8#Description
"""
(first, char) = get_next_byte(s)
- if first == None: # Keyboard special, like KEY_HOME etc
+ if not isinstance(first, int): # Keyboard special, like KEY_HOME etc
return char
if first == 127 or first == 8:
return "KEY_BACKSPACE"