ElectronKeyboardEvent
Unofficial
Modifier-key state describing how an accelerator-triggered event was activated.
Import:
import type { ElectronKeyboardEvent } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface ElectronKeyboardEventProperties
| Property | Type | Description | |
|---|---|---|---|
| altKey? | boolean | Whether an Alt key was used in an accelerator to trigger the event. | |
| ctrlKey? | boolean | Whether the Control key was used in an accelerator to trigger the event. | |
| metaKey? | boolean | Whether a meta key was used in an accelerator to trigger the event. | |
| shiftKey? | boolean | Whether a Shift key was used in an accelerator to trigger the event. | |
| triggeredByAccelerator? | boolean | Whether an accelerator was used to trigger the event as opposed to another user gesture like a mouse click. |