Profectus / features/hotkey / Hotkey
Interface: Hotkey ​
An object that represents a hotkey shortcut that performs an action upon a key sequence being pressed.
Properties ​
description ​
description:
MaybeRef
<string
>
The description of this hotkey, to display in the settings.
Defined in ​
profectus/src/features/hotkey.tsx:37
enabled ​
enabled:
MaybeRef
<boolean
>
Whether or not this hotkey is currently enabled.
Defined in ​
profectus/src/features/hotkey.tsx:33
key ​
key:
string
The key tied to this hotkey
Defined in ​
profectus/src/features/hotkey.tsx:35
onPress() ​
onPress: (
e
?) =>void
What to do upon pressing the key.
Parameters ​
e? ​
Returns ​
void
Defined in ​
profectus/src/features/hotkey.tsx:39
type ​
type: typeof
HotkeyType
A symbol that helps identify features of the same type.