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

PropertyTypeDescription
altbooleanEquivalent to KeyboardEvent.altKey.
codestringEquivalent to KeyboardEvent.code.
controlbooleanEquivalent to KeyboardEvent.controlKey.
isAutoRepeatbooleanEquivalent to KeyboardEvent.repeat.
isComposingbooleanEquivalent to KeyboardEvent.isComposing.
keystringEquivalent to KeyboardEvent.key.
locationnumberEquivalent to KeyboardEvent.location.
metabooleanEquivalent to KeyboardEvent.metaKey.
modifiersstring[]The modifiers of the input event.
shiftbooleanEquivalent to KeyboardEvent.shiftKey.
typestringEither keyUp or keyDown.