Skip to main content

Keyboard Navigation

The grid coordinates keyboard navigation with dataset row movement and cell edit state.

Tab stops and focus order

const FdcTextColumn<dynamic>(
fieldName: 'company',
focusOrder: 10,
tabStop: true,
)

Set tabStop: false for visual or action-oriented columns that should not participate in normal Tab traversal.

Lookup shortcut

Columns with onLookup can expose a focused-cell lookup action. The default shortcut is F4.

FdcTextColumn<String>(
fieldName: 'customer_code',
onLookup: openCustomerLookup,
)

A custom lookupShortcut may be supplied, or set to null to disable keyboard lookup activation for that column.

Scroll modes

const FdcGridOptions(
verticalScrollMode: FdcGridVerticalScrollMode.smooth,
horizontalScrollMode: FdcGridHorizontalScrollMode.columnSnap,
)

smooth vertical scrolling is pixel-based and does not make the first visible row current. recordScroll snaps to rows and synchronizes the current dataset record with the visible position.