Fix the ^? for python 3.1

possibly lost keystrokes when there is lag, but who cares?
This commit is contained in:
mathieui 2012-12-27 16:22:29 +01:00
parent 2a145abf9b
commit 97c66b42c3

View file

@ -50,6 +50,7 @@ def get_char_list_old(s):
return [char] return [char]
if first == 127 or first == 8: if first == 127 or first == 8:
ret_list.append("KEY_BACKSPACE") ret_list.append("KEY_BACKSPACE")
break
s.timeout(0) # we are now getting the missing utf-8 bytes to get a whole char 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 < 127: # ASCII char on one byte
if first <= 26: # transform Ctrl+* keys if first <= 26: # transform Ctrl+* keys