Skip to content

PivotGrid - KBN - Open cell context menu from keyboard#34263

Open
bit-byte0 wants to merge 1 commit into
DevExpress:mainfrom
bit-byte0:feat/pivotgrid-kbn-cell-context-menu
Open

PivotGrid - KBN - Open cell context menu from keyboard#34263
bit-byte0 wants to merge 1 commit into
DevExpress:mainfrom
bit-byte0:feat/pivotgrid-kbn-cell-context-menu

Conversation

@bit-byte0

Copy link
Copy Markdown
Contributor

What

Adds a small PivotGrid keyboard-navigation helper that recognizes the open-context-menu keyboard gesture (Shift+F10 and the dedicated ContextMenu key) on header cells

How

New isContextMenuKeyEvent predicate in cell_context_menu.ts with jest tests, following the existing keyboard_navigation helper style. This is the base-agnostic foundation for opening the cell context menu from the keyboard; the widget wiring lands once header cells become focusable

Copilot AI review requested due to automatic review settings July 10, 2026 10:36
@bit-byte0 bit-byte0 added the 26_2 label Jul 10, 2026
@bit-byte0 bit-byte0 self-assigned this Jul 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a small PivotGrid keyboard-navigation utility to detect the standard “open context menu” keyboard gestures on header cells (Shift+F10 and the dedicated ContextMenu key). This fits into the __internal/grids/pivot_grid/keyboard_navigation helpers alongside existing navigation utilities and establishes a base-agnostic predicate for future widget wiring.

Changes:

  • Added isContextMenuKeyEvent predicate for recognizing ContextMenu and Shift+F10.
  • Added Jest coverage for the predicate, including positive and negative cases.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/devextreme/js/__internal/grids/pivot_grid/keyboard_navigation/cell_context_menu.ts Introduces the isContextMenuKeyEvent helper to detect context-menu keyboard triggers.
packages/devextreme/js/__internal/grids/pivot_grid/keyboard_navigation/cell_context_menu.test.ts Adds Jest tests validating detection and non-detection scenarios for the helper.

@bit-byte0 bit-byte0 changed the title PivotGrid - KBN - Add context menu keyboard trigger detection PivotGrid - KBN - Open cell context menu from keyboard Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants