Skip to main content

HotkeyOptions

All options of an individual hotkey

type HotkeyOptions = {
preventDefault: boolean;
enableOnContentEditable: boolean;
disabled: boolean;
};

Attributes

preventDefault

defaults to true

preventDefault: boolean;

Determines if the default event of a key stroke should get prevented or not

enableOnContentEditable

defaults to false

enableOnContentEditable: boolean;

Determines if the hotkey can be triggered while having an editable tag in focus (e.g. input)

disabled

defaults to false

disabled: boolean;

Determines if the hotkey is actively listening