fix #41551: Shortcuts using shift are not registered correctly.