Skip to content

feat(workspace): implement comprehensive keyboard navigation and multi-cell range selection in DataGrid - #664

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/662-grid-keyboard-navigation
Aug 30, 2026
Merged

feat(workspace): implement comprehensive keyboard navigation and multi-cell range selection in DataGrid#664
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/662-grid-keyboard-navigation

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Description

Resolves #662 by implementing full keyboard navigation and rectangular range selection in VirtualResultGrid:

  1. Cell Navigation:

    • ArrowDown, ArrowUp, ArrowRight, ArrowLeft move the active cell selection.
    • Shift + Arrow keys extend the rectangular cell selection range.
    • Home / End jump to first / last column.
    • Ctrl+Home / Ctrl+End (or Meta+Home / Meta+End) jump to first / last cell in dataset.
    • PageUp / PageDown step by viewport height.
    • Ctrl+A / Meta+A selects all cells in the table.
  2. Auto-Scroll Into View:

    • Implemented _scrollToCell(int row, int col) ensuring that keyboard navigation automatically brings off-screen cells into visible viewport.
  3. Testing:

    • Added widget test suite in test/features/workspace/grid_keyboard_navigation_test.dart covering arrow navigation, range expansion with shift, table select all, and jump navigation.
    • All tests pass with 0 analyze warnings.

Closes #662

…i-cell range selection in DataGrid

- Add _navigateCell, _jumpToCell, and _selectAll in ResultGridView
- Bind Arrow keys (Up, Down, Left, Right) and Shift+Arrows for multi-cell range selection
- Bind Home, End, Ctrl+Home, Ctrl+End, PageUp, PageDown, and Ctrl+A / Meta+A
- Implement _scrollToCell for auto-scrolling active cells into viewport view
- Add widget tests covering cell keyboard navigation, range selection, and shortcuts

Closes #662
@github-actions github-actions Bot added enhancement New feature or request frontend Theme parser epic label: frontend labels Aug 30, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit b1a6ec8 into dev Aug 30, 2026
4 checks passed
This was referenced Aug 30, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/662-grid-keyboard-navigation branch August 30, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend Theme parser epic label: frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant