Accelerator

Keyboard shortcut.

Typestring

Accelerators are represented by strings that contain multiple modifier and key codes, combined by the + character.

Examples:

Platform-dependent modifiers

On Linux and Window, the CommandOrControl modifier is mapped to the Control key. On macOS it is mapped to the Command key. This is useful when defining some common keyboard shortcuts.

Available modifiers

Available key codes