- if len(modifiers) == 0 and key is not None:
- threading.Thread(name="MSKeyAction", target=key.run).start()
+ if self.allowed_modifiers(modifiers) and key is not None:
+ modifiers.sort()
+ threading.Thread(name="MSKeyAction", target=key.run,
+ args=['-'.join(modifiers)]).start()