Change the formatting of the numpad keys
This makes it consistent with as before
This commit is contained in:
parent
1cf3d66a22
commit
991ba54499
@ -299,15 +299,13 @@ class KeyInfo:
|
|||||||
elif self.modifiers == Qt.NoModifier:
|
elif self.modifiers == Qt.NoModifier:
|
||||||
assert not is_special(self.key, self.modifiers)
|
assert not is_special(self.key, self.modifiers)
|
||||||
return key_string.lower()
|
return key_string.lower()
|
||||||
elif self.modifiers == Qt.KeypadModifier:
|
|
||||||
assert not is_special(self.key, self.modifiers)
|
|
||||||
return "<Num+{}>".format(key_string)
|
|
||||||
else:
|
else:
|
||||||
# Use special binding syntax, but <Ctrl-a> instead of <Ctrl-A>
|
# Use special binding syntax, but <Ctrl-a> instead of <Ctrl-A>
|
||||||
key_string = key_string.lower()
|
key_string = key_string.lower()
|
||||||
|
|
||||||
# "special" binding
|
# "special" binding
|
||||||
assert is_special(self.key, self.modifiers)
|
assert (is_special(self.key, self.modifiers) or
|
||||||
|
self.modifiers == Qt.KeypadModifier)
|
||||||
modifier_string = _modifiers_to_string(modifiers)
|
modifier_string = _modifiers_to_string(modifiers)
|
||||||
return '<{}{}>'.format(modifier_string, key_string)
|
return '<{}{}>'.format(modifier_string, key_string)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user