diff options
-rw-r--r-- | src/keyboard.py | 6 |
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): |