View as Markdown

API reference: @salmonui/data-grid/engine

KeyEventLikeinterface

import type { KeyEventLike } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/keyboard.

interface KeyEventLike {
    readonly key: string;
    readonly code?: string;
    readonly ctrlKey: boolean;
    readonly metaKey: boolean;
    readonly altKey: boolean;
    readonly shiftKey: boolean;
}

Structural subset of a DOM KeyboardEvent (the engine compiles without the DOM lib).

KeyEventLike members (6)
NameSignatureDescription
keyreadonly key: string;
codeoptionalreadonly code?: string;
ctrlKeyreadonly ctrlKey: boolean;
metaKeyreadonly metaKey: boolean;
altKeyreadonly altKey: boolean;
shiftKeyreadonly shiftKey: boolean;