Allow distinguishing shortcut press from shortcut repeat
Part of plasma-desktop#149.
This merge request allows distinguishing of key press and key repeat when handling global keyboard shortcuts. If a shortcut is triggered by a key repeat, a new globalShortcutHeld signal is emitted over D-Bus. Otherwise, the usual globalShortcutPressed signal is held.
Note: This breaks key repeat under X11. I am not familiar with X11 so don't know how to tell when a key event is that of a key repeat. In the X11 case, my code treats key repeats as ordinary key presses, which means the actual behaviour is unchanged. (You can't ignore key repeat under X11).
Related MRs:
Edited by Nate Graham