summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/keyboard.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/keyboard.py b/src/keyboard.py
index 71bdd0d1..2ad47e4b 100644
--- a/src/keyboard.py
+++ b/src/keyboard.py
@@ -115,7 +115,11 @@ def get_char_list_new(s):
pass
else:
key = '%s-%s' % (key, part)
- ret_list.append('^M' if key == '\r' else key)
+ if key == '\x7f':
+ key = '^?'
+ elif key == '\r':
+ key = '^M'
+ ret_list.append(key)
class Keyboard(object):
def __init__(self):