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.
Scrolling and scrollbars
Configure vertical and horizontal scroll behavior independently:
const FdcGridOptions(
verticalScrollMode: FdcGridVerticalScrollMode.smooth,
horizontalScrollMode: FdcGridHorizontalScrollMode.columnSnap,
scrollbars: FdcGridScrollbars.both,
)
Vertical scroll modes
| Mode | Behavior |
|---|---|
FdcGridVerticalScrollMode.smooth | Pixel-based scrolling. Scrolling does not make the first visible row current. |
FdcGridVerticalScrollMode.recordScroll | Row-oriented scrolling. The viewport snaps to row boundaries and the first visible row becomes the current dataset record. |
Horizontal scroll modes
| Mode | Behavior |
|---|---|
FdcGridHorizontalScrollMode.smooth | Pixel-based horizontal scrolling without column snapping. |
FdcGridHorizontalScrollMode.columnSnap | Settles to the nearest column boundary when the scroll interaction ends. |
Scrollbar visibility
FdcGridScrollbars controls only which scrollbar thumbs are rendered:
bothrenders vertical and horizontal thumbs;verticalrenders only the vertical thumb;horizontalrenders only the horizontal thumb;nonehides both thumbs.
Hiding scrollbar thumbs does not disable scrolling. Pointer, wheel, drag, trackpad, and keyboard scrolling remain available.