The key press is the shortcut (parseShortcut): the same modifiers (no more, no less) and the same key.
Mod is Cmd on a Mac (also an iPhone or an iPad with a keyboard) and Ctrl on other platforms. The other one of the
two is not a modifier of a shortcut: a key press with it matches no shortcut (Ctrl+Z on a Mac is not Mod+Z).
A key name matches the character of the key (KeyboardEvent.key, in any case), or the place of that key on a US
keyboard (KeyboardEvent.code): for a digit or a sign always, for a letter only when the key types no Latin letter.
So Mod+Z also works on a keyboard with other letters (Cyrillic, Greek), and Alt+T works on a Mac, where Alt
changes the character; on a QWERTZ keyboard the Z key is Z, not Y.
A KeyboardEvent.code (KeyC) matches only that place on the keyboard.
A shortcut with a sign that needs Shift names Shift too: Shift+/ for ?.
The key press is the shortcut (parseShortcut): the same modifiers (no more, no less) and the same key.
Modis Cmd on a Mac (also an iPhone or an iPad with a keyboard) and Ctrl on other platforms. The other one of the two is not a modifier of a shortcut: a key press with it matches no shortcut (Ctrl+Z on a Mac is notMod+Z).KeyboardEvent.key, in any case), or the place of that key on a US keyboard (KeyboardEvent.code): for a digit or a sign always, for a letter only when the key types no Latin letter. SoMod+Zalso works on a keyboard with other letters (Cyrillic, Greek), andAlt+Tworks on a Mac, where Alt changes the character; on a QWERTZ keyboard the Z key isZ, notY.KeyboardEvent.code(KeyC) matches only that place on the keyboard.Shift+/for?.