summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-12-27 16:22:29 +0100
committermathieui <mathieui@mathieui.net>2012-12-27 16:22:29 +0100
commit97c66b42c306f44f8085ebcb5d46eadc5a50b3b5 (patch)
treeac0fdb56c8d7df80ac2fb89e4cd0d41c3bcd62b1
parent2a145abf9b3ec78c3d526a75f08cd6fe4908d077 (diff)
downloadpoezio-97c66b42c306f44f8085ebcb5d46eadc5a50b3b5.tar.gz
poezio-97c66b42c306f44f8085ebcb5d46eadc5a50b3b5.tar.bz2
poezio-97c66b42c306f44f8085ebcb5d46eadc5a50b3b5.tar.xz
poezio-97c66b42c306f44f8085ebcb5d46eadc5a50b3b5.zip
Fix the ^? for python 3.1
possibly lost keystrokes when there is lag, but who cares?
-rw-r--r--src/keyboard.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/keyboard.py b/src/keyboard.py
index 2ad30dc5..ffc7dd60 100644
--- a/src/keyboard.py
+++ b/src/keyboard.py
@@ -50,6 +50,7 @@ def get_char_list_old(s):
return [char]
if first == 127 or first == 8:
ret_list.append("KEY_BACKSPACE")
+ break
s.timeout(0) # we are now getting the missing utf-8 bytes to get a whole char
if first < 127: # ASCII char on one byte
if first <= 26: # transform Ctrl+* keys