Skip to main content

Interface: KeyContext

Defined in: packages/sdvtables/src/html/controls.ts:127

Task 10: everything keyAction reads; handleKeydown gathers it from the engine and the DOM.

Properties​

cols​

readonly cols: readonly string[]

Defined in: packages/sdvtables/src/html/controls.ts:140

the shown sortable columns in header order: the data-sdv-sort buttons


cursor​

readonly cursor: TableCursor

Defined in: packages/sdvtables/src/html/controls.ts:136

the engine's cursor (table.state.cursor)


focused​

readonly focused: number | null

Defined in: packages/sdvtables/src/html/controls.ts:129

the data-row of the body row the key landed in, or null (toolbar, header, pager)


hotkeys​

readonly hotkeys: boolean

Defined in: packages/sdvtables/src/html/controls.ts:144

spec.interactive.hotkeys !== false: the letter keys and / are on


onRow​

readonly onRow: boolean

Defined in: packages/sdvtables/src/html/controls.ts:134

the key landed on that body row itself, not on a link or button inside it (that control keeps its Enter, Space and left/right keys)


order​

readonly order: readonly number[]

Defined in: packages/sdvtables/src/html/controls.ts:142

the page's body rows' data-row values in display order (groupBy reorders them)


sorted​

readonly sorted: string | null

Defined in: packages/sdvtables/src/html/controls.ts:138

the sorted column (table.state.sort?.col), or null