Skip to content

TElectronGlobalShortcut

Description

Below is a list of the most important properties and events for TElectronGlobalShortcut. This component allows adding listeners for keyboard shortcuts that are recognized even when the application is not in focus. Due to Electron limitation TElectronGlobalShortcut should only be used in the main form.

Properties for TElectronGlobalShortcut

Property Description
ShortCut Sets the keyboard shortcut.

It's enough to use Ctrl or Cmd only as under the hood it's getting translated to Electron's CommandOrControl. On Linux Ctrl key shortcuts sometimes are not working as expected.

Events for TElectronGlobalShortcut

Property Description
OnShortcut Triggers when the defined shortcut is pressed on the keyboard.