From 97c66b42c306f44f8085ebcb5d46eadc5a50b3b5 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 27 Dec 2012 16:22:29 +0100 Subject: [PATCH] Fix the ^? for python 3.1 possibly lost keystrokes when there is lag, but who cares? --- src/keyboard.py | 1 + 1 file changed, 1 insertion(+) 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