summaryrefslogtreecommitdiff
path: root/src/keyboard.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-10 22:32:31 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-10 22:32:31 +0000
commit22e05a229a96a70bd891d0a6205ece851f1017a5 (patch)
tree2bd87b56947924130e939a14504f4ebaa990d39e /src/keyboard.py
parent945dc664d8f9044970e631db66d660057f912843 (diff)
downloadpoezio-22e05a229a96a70bd891d0a6205ece851f1017a5.tar.gz
poezio-22e05a229a96a70bd891d0a6205ece851f1017a5.tar.bz2
poezio-22e05a229a96a70bd891d0a6205ece851f1017a5.tar.xz
poezio-22e05a229a96a70bd891d0a6205ece851f1017a5.zip
fixed #1821, also try to fixe #1825
Diffstat (limited to 'src/keyboard.py')
-rw-r--r--src/keyboard.py2
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