API reference: @salmonui/data-grid
DataGridKeyDownContextinterface
import type { DataGridKeyDownContext } from '@salmonui/data-grid';interface DataGridKeyDownContext {
readonly nativeEvent: KeyboardEvent;
readonly command: string | null;
readonly context: DataGridKeyContext;
readonly rowId: RowId | null;
readonly field: string | null;
preventDefault(): void;
}
Context of onKeyDown.
| Name | Signature | Description |
|---|---|---|
nativeEvent | readonly nativeEvent: KeyboardEvent; | |
command | readonly command: string | null; | Keyboard command bound to the key in this context ( |
context | readonly context: DataGridKeyContext; | |
rowId | readonly rowId: RowId | null; | Focused cell or header. |
field | readonly field: string | null; | |
preventDefault | preventDefault(): void; | Suppresses the built-in behavior of the binding. |