Skip to content

ElectronInput

Unofficial

Input properties describing a keyboard event dispatched to the page.

Import:

import type { ElectronInput } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ElectronInput

Properties

Property Type Description
alt boolean Equivalent to KeyboardEvent.altKey.
code string Equivalent to KeyboardEvent.code.
control boolean Equivalent to KeyboardEvent.controlKey.
isAutoRepeat boolean Equivalent to KeyboardEvent.repeat.
isComposing boolean Equivalent to KeyboardEvent.isComposing.
key string Equivalent to KeyboardEvent.key.
location number Equivalent to KeyboardEvent.location.
meta boolean Equivalent to KeyboardEvent.metaKey.
modifiers string[] The modifiers of the input event.
shift boolean Equivalent to KeyboardEvent.shiftKey.
type string Either keyUp or keyDown.