window: Fix keyboard shortcuts
Keyboard shortcuts sometimes do not work, because the check for the modifiers does not include the default modifier mask. This causes an activated numlock or shiftlock to disable keyboard shortcuts. Adding the mask fixes this problem.
Closes: #238 (closed)
(cherry picked from commit 75f36957)