summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Holland <william.holland@codethink.co.uk>2015-05-30 22:54:12 +0100
committerWilliam Holland <william.holland@codethink.co.uk>2015-05-30 22:54:12 +0100
commitd334557fb68f79d7729af498bf7bac40aaa8f51a (patch)
tree00f4d389bc88e3af3e1afab5ac19258062170c07
parent83c5a6cbc454fe70328f12612c73a8c494ba1007 (diff)
downloadkeyboard-python-d334557fb68f79d7729af498bf7bac40aaa8f51a.tar.bz2
Fix escape not working
-rw-r--r--keyboardpython/key.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/keyboardpython/key.py b/keyboardpython/key.py
index 123843f..57fbffc 100644
--- a/keyboardpython/key.py
+++ b/keyboardpython/key.py
@@ -191,8 +191,7 @@ def parse_code(code):
char = _code.pop(0)
if char == ESC:
if not _code:
- key = _special_chars[ESC]
- return KeyCombination(key)
+ return _special_chars[ESC]
char = _code.pop(0)
if char == '[':
_code, key_comb = _match_start_in_table(_code,