summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Holland <william.holland@codethink.co.uk>2015-05-30 19:49:05 +0100
committerWilliam Holland <william.holland@codethink.co.uk>2015-05-30 19:49:05 +0100
commitf0f668e590a908ab159538740f1679ad351eb85b (patch)
treea5e369fa5e645aeef0d7f630897320eca646f6d7
parent2330917c80eb963a411626d72ea0a38b414abbe6 (diff)
downloadkeyboard-python-f0f668e590a908ab159538740f1679ad351eb85b.tar.bz2
Remove unneeded fork
-rw-r--r--keyboardpython/key.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/keyboardpython/key.py b/keyboardpython/key.py
index c088c46..548ef1d 100644
--- a/keyboardpython/key.py
+++ b/keyboardpython/key.py
@@ -203,10 +203,7 @@ def parse_code(code):
elif char == 'O':
_code, key_comb = match_start_in_table(_code,
_escape_O_codes)
- else:
- key_comb = KeyCombination(ALT)
- elif char.isalnum():
- key_comb = KeyCombination(char)
+ else: key_comb = KeyCombination(ALT)
elif char in _special_chars.keys():
key_comb = KeyCombination(_special_chars[char])
elif _is_ctrl_alpha(char):