View as Markdown

API reference: @salmonui/data-grid

DataGridKeyHandlertype

import type { DataGridKeyHandler } from '@salmonui/data-grid';
type DataGridKeyHandler = (ctx: {
    readonly nativeEvent: KeyboardEvent;
    readonly context: DataGridKeyContext;
    readonly command: string;
}) => boolean;

Handler for a keyboard command; return true when it handled the key (the event is then consumed).