summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Holland <william.holland@codethink.co.uk>2015-05-30 19:48:21 +0100
committerWilliam Holland <william.holland@codethink.co.uk>2015-05-30 19:48:21 +0100
commit2330917c80eb963a411626d72ea0a38b414abbe6 (patch)
treeb2b14e140c2cc189c2428485f3d00d954a3029ed
parent7b501c6e1404226d8ed65c020088cf5d9cfd4552 (diff)
downloadkeyboard-python-2330917c80eb963a411626d72ea0a38b414abbe6.tar.bz2
Clean up a bit
Because KeyCombination doesn't need to take a Key
-rw-r--r--keyboardpython/key.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboardpython/key.py b/keyboardpython/key.py
index 9205852..c088c46 100644
--- a/keyboardpython/key.py
+++ b/keyboardpython/key.py
@@ -206,12 +206,12 @@ def parse_code(code):
else:
key_comb = KeyCombination(ALT)
elif char.isalnum():
- key_comb = KeyCombination(Key(char))
+ key_comb = KeyCombination(char)
elif char in _special_chars.keys():
key_comb = KeyCombination(_special_chars[char])
elif _is_ctrl_alpha(char):
key_comb = _get_ctrl_alpha(char)
else:
- key_comb = KeyCombination(Key(char))
+ key_comb = KeyCombination(char)
to_return.add_keyCombination(key_comb)
return to_return