STRUCT
A keyboard shortcut used e.g. in menus.
A shortcut often use for "Delete" actions which is the "Delete" key on Linux and ⌘⌫ on macOS.
The character or a sequence representing a letter or symbol.
Whether the Ctrl key is part of the shortcut.
Whether the Shift key is part of the shortcut.
Whether the Alt key is part of the shortcut.
The modifiers for the macOS shortcut.
The shortcut in a representation for Linux.
Initialize a keyboard shortcut.
- Parameters:
- character: A letter.
- ctrl: Whether Ctrl is part of the shortcut.
- shift: Whether Shift is part of the shortcut.
- alt: Whether Alt is part of the shortcut.
Initialize a keyboard shortcut.
- Parameters:
- symbol: A character.
- ctrl: Whether Ctrl is part of the shortcut.
- shift: Whether Shift is part of the shortcut.
- alt: Whether Alt is part of the shortcut.