Accelerator
Accelerators are strings that can contain multiple modifiers and a single key code, combined by the character, and are used to define keyboard shortcuts throughout your application.
CommandOrControl+A
CommandOrControl+Shift+Z
Shortcuts are registered with the globalShortcut
module
using the
method, i.e.
Use Alt
instead of Option
. The Option
key only exists on macOS, whereas
the Alt
key is available on all platforms.
Command
(orCmd
for short)Control
(orCtrl
for short)CommandOrControl
(orCmdOrCtrl
for short)Alt
Option
AltGr
Super
0
to9
A
toZ
F1
toF24
- Punctuation like
~
,!
,@
,#
,$
, etc. Plus
Space
Tab
Capslock
Numlock
Scrolllock
Backspace
Delete
Insert
Up
, ,Left
andRight
Home
andEnd
PageUp
andPageDown
Escape
(orEsc
for short)VolumeUp
,VolumeDown
andVolumeMute
MediaNextTrack
,MediaPreviousTrack
,MediaStop
andMediaPlayPause
PrintScreen
- NumPad Keys
num0
-num9
numdec
- decimal keynumadd
- numpad+
keynumsub
- numpad-
keynummult
- numpad*
key