summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-10 22:34:21 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-10 22:34:21 +0000
commit92d155acf559ec7c3c859767f2256793dd251822 (patch)
tree55f67e67803062ecd11b69009a2812fe14be6bef /src
parent22e05a229a96a70bd891d0a6205ece851f1017a5 (diff)
downloadpoezio-92d155acf559ec7c3c859767f2256793dd251822.tar.gz
poezio-92d155acf559ec7c3c859767f2256793dd251822.tar.bz2
poezio-92d155acf559ec7c3c859767f2256793dd251822.tar.xz
poezio-92d155acf559ec7c3c859767f2256793dd251822.zip
fixed #1825
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.py b/src/keyboard.py
index 6b6c43f7..4a577d16 100644
--- a/src/keyboard.py
+++ b/src/keyboard.py
@@ -51,8 +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
+ if not isinstance(first, int):
+ return None
return "M-"+chr(first)
if 194 <= first:
(code, c) = get_next_byte(s) # 2 bytes char