1,012 B
1,012 B
Accelerator
An accelerator is string that represents a keyboard shortcut, it can contain
multiple modifiers and key codes, combined by the +
character.
Examples:
Command+A
Ctrl+Shift+Z
Platform notice
On Linux and Windows, the Command
key would not have any effect, you can
use CommandOrControl
which represents Command
on OS X and Control
on
Linux and Windows to define some accelerators.
Available modifiers
Command
(orCmd
for short)Control
(orCtrl
for short)CommandOrControl
(orCmdOrCtrl
for short)Alt
Shift
Available key codes
0
to9
A
toZ
F1
toF24
- Punctuations like
~
,!
,@
,#
,$
, etc. Plus
Space
Backspace
Delete
Insert
Return
(orEnter
as alias)Up
,Down
,Left
andRight
Home
andEnd
PageUp
andPageDown
Escape
(orEsc
for short)VolumeUp
,VolumeDown
andVolumeMute
MediaNextTrack
,MediaPreviousTrack
,MediaStop
andMediaPlayPause