IOverlayHotkey
Electron APIs / overlay / IOverlayHotkey
Represents an overlay hotkey configuration.
Defines:
- Unique name.
- Main keycode.
- Optional modifier keys.
- Passthrough behavior.
Example
const screenshotHotkey: IOverlayHotkey = {
name: "take-screenshot",
keyCode: 80, // p
modifiers: { ctrl: true, alt: true },
passthrough: false,
};