View as Markdown

API reference: @salmonui/data-grid/engine

KeymapOptionsinterface

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

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

interface KeymapOptions {
    readonly platform?: KeyPlatform;
    readonly bindings?: KeyBindingOverrides;
    readonly table?: readonly KeyBinding[];
    readonly warn?: (code: string, message: string) => void;
}
KeymapOptions members (4)
NameSignatureDescription
platformoptionalreadonly platform?: KeyPlatform;
bindingsoptionalreadonly bindings?: KeyBindingOverrides;

Replaces the combos of the named commands (Custom Bindings). An empty array unbinds.

tableoptionalreadonly table?: readonly KeyBinding[];
warnoptionalreadonly warn?: (code: string, message: string) => void;