Fix crash in string representation of key

This commit is contained in:
George Edward Bulmer 2018-03-20 23:13:56 +00:00
parent d6463d5ade
commit a5dc8a3025

View File

@ -300,6 +300,7 @@ class KeyInfo:
return key_string.lower()
elif self.modifiers == Qt.KeypadModifier:
assert not is_special(self.key, self.modifiers)
return key_string.lower()
else:
# Use special binding syntax, but <Ctrl-a> instead of <Ctrl-A>
key_string = key_string.lower()