Skip to content

Commit

Permalink
Merge pull request #126 from enthought/fix/pr-121-regression
Browse files Browse the repository at this point in the history
BUG: Don't overwrite entries in the KEY_MAP dictionary.
  • Loading branch information
rkern committed Apr 17, 2014
2 parents 7417c53 + 18743c9 commit 497fea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enable/qt4/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
if enum_name.startswith('Key_'):
enum = getattr(QtCore.Qt, enum_name)
# Ignore everything in latin-1 as we just want the unichr() conversion.
if enum <= 255:
if enum <= 255 or enum in KEY_MAP:
continue
key_name = enum_name[len('Key_'):]
KEY_MAP[enum] = key_name

0 comments on commit 497fea3

Please sign in to comment.