summaryrefslogtreecommitdiff
path: root/src/keyboard.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-20 21:57:25 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-20 21:57:25 +0000
commitf7c8c2b192863162e9d89850e7158563d3426c47 (patch)
treeb89844913c8c65642150759a5e92cc8643f1c0e9 /src/keyboard.py
parent2c1a05a1531ae99c699aeb90325b1783fd927c20 (diff)
downloadpoezio-f7c8c2b192863162e9d89850e7158563d3426c47.tar.gz
poezio-f7c8c2b192863162e9d89850e7158563d3426c47.tar.bz2
poezio-f7c8c2b192863162e9d89850e7158563d3426c47.tar.xz
poezio-f7c8c2b192863162e9d89850e7158563d3426c47.zip
also fix the backspace problem
Diffstat (limited to 'src/keyboard.py')
-rw-r--r--src/keyboard.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/keyboard.py b/src/keyboard.py
index 2f27968e..4c677e79 100644
--- a/src/keyboard.py
+++ b/src/keyboard.py
@@ -44,7 +44,9 @@ def read_char(s):
(first, char) = get_next_byte(s)
if first == None: # Keyboard special, like KEY_HOME etc
return char
- if first <= 127: # ASCII char on one byte
+ if first == 127 or first == 8:
+ return "KEY_BACKSPACE"
+ if first < 127: # ASCII char on one byte
if first <= 26: # transform Ctrl+* keys
char = "^"+chr(first + 64)
if first == 27: