Motivation & Problem
In lib/features/workspace/result_grid_view.dart (lines 780–886), the DataGrid handles clipboard copy (Ctrl+C), staging shortcuts (Ctrl+Del, Ctrl+Z), and inline editing triggers (F2, Enter, Space), but lacks keyboard navigation for moving the active cell selection:
- Pressing
ArrowUp, ArrowDown, ArrowLeft, or ArrowRight does not move cell selection.
Shift + Arrow keys do not extend the rectangular cell selection range.
Ctrl + A / Meta + A does not select all cells in the grid.
Home, End, Ctrl+Home, Ctrl+End, PageUp, PageDown are unhandled.
Proposed Solution
- In
ResultGridView (_VirtualResultGridState):
- Add
_navigateCell(int dRow, int dCol, {bool extendSelection = false}) supporting arrow keys and shift-arrow range extension.
- Add
Home / End (first/last column), Ctrl+Home / Ctrl+End (first/last cell), and PageUp / PageDown (viewport page step).
- Add
Ctrl+A / Meta+A to select the entire table grid.
- Implement auto-scroll to ensure newly selected cells are brought into visible viewport.
- Add widget tests for keyboard navigation, range selection, and shortcuts.
Acceptance Criteria
Motivation & Problem
In
lib/features/workspace/result_grid_view.dart(lines 780–886), the DataGrid handles clipboard copy (Ctrl+C), staging shortcuts (Ctrl+Del,Ctrl+Z), and inline editing triggers (F2,Enter,Space), but lacks keyboard navigation for moving the active cell selection:ArrowUp,ArrowDown,ArrowLeft, orArrowRightdoes not move cell selection.Shift + Arrowkeys do not extend the rectangular cell selection range.Ctrl + A/Meta + Adoes not select all cells in the grid.Home,End,Ctrl+Home,Ctrl+End,PageUp,PageDownare unhandled.Proposed Solution
ResultGridView(_VirtualResultGridState):_navigateCell(int dRow, int dCol, {bool extendSelection = false})supporting arrow keys and shift-arrow range extension.Home/End(first/last column),Ctrl+Home/Ctrl+End(first/last cell), andPageUp/PageDown(viewport page step).Ctrl+A/Meta+Ato select the entire table grid.Acceptance Criteria