November 2019
Beginner
436 pages
8h 52m
English
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.
Traditionally, menu items in applications provide support for keyboard shortcuts. Nowadays, everyone is used to using the Cmd + S or Ctrl + S combinations to save a file, Cmd + P or Ctrl + P to print a document, and so on.
Electron provides support for keyboard shortcuts, or accelerators, that you can use either globally or with a particular menu item. To create a new keyboard shortcut, you need to add a new attribute called accelerator to your menu item and specify the key combination in plain text.
In the previous examples, ...
Read now
Unlock full access