diff options
author | William Holland <william.holland@codethink.co.uk> | 2015-05-30 19:48:21 +0100 |
---|---|---|
committer | William Holland <william.holland@codethink.co.uk> | 2015-05-30 19:48:21 +0100 |
commit | 2330917c80eb963a411626d72ea0a38b414abbe6 (patch) | |
tree | b2b14e140c2cc189c2428485f3d00d954a3029ed /keyboardpython | |
parent | 7b501c6e1404226d8ed65c020088cf5d9cfd4552 (diff) | |
download | keyboard-python-2330917c80eb963a411626d72ea0a38b414abbe6.tar.bz2 |
Clean up a bit
Because KeyCombination doesn't need to take a Key
Diffstat (limited to 'keyboardpython')
-rw-r--r-- | keyboardpython/key.py | 4 |
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 |