Browse Source

fix numpad + and - keys. Only numbers

master
Nils 3 years ago
parent
commit
bd109b6489
  1. 4
      template/qtgui/menu.py

4
template/qtgui/menu.py

@ -375,7 +375,9 @@ class HoverActionDictionary(dict):
def __setitem__(self, key, menuAction):
"""key is a string of a single number 0-9"""
assert key in "0 1 2 3 4 5 6 7 8 9".split()
if not key in "0 1 2 3 4 5 6 7 8 9".split():
#No Numpad + and -
return
try:
self[key].setShortcut(QtGui.QKeySequence()) #reset the action that previously had that shortcut

Loading…
Cancel
Save