diff options
Diffstat (limited to 'src/keyboard.py')
-rw-r--r-- | src/keyboard.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keyboard.py b/src/keyboard.py index 265fa00b..6b6c43f7 100644 --- a/src/keyboard.py +++ b/src/keyboard.py @@ -51,6 +51,8 @@ def read_char(s): return "^"+chr(first + 64) if first == 27: (first, c) = get_next_byte(s) + if not isinstance(first, int): # Keyboard special, like KEY_HOME etc + return char return "M-"+chr(first) if 194 <= first: (code, c) = get_next_byte(s) # 2 bytes char |