Skip to content

feat(datagrid): open a cell's value editor from its menu and Option-Return - #4374

Merged
datlechin merged 2 commits into
mainfrom
feat/grid-open-value-editor
Nov 20, 2026
Merged

datlechin merged 2 commits into
mainfrom
feat/grid-open-value-editor

Conversation

@datlechin

@datlechin datlechin commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • A cell's context menu opens its value editor: "Open Value Editor" on a cell the grid can write, "View Value" on a read-only one.
  • The item shows only on a cell that opens a viewer or a typed editor: JSON, blob, long text, date, enum, set, array, vector, dropdown. It is hidden on short text, numbers, checkboxes, a read-only NULL and deleted rows.
  • Query > Open Value Editor runs the same command on the active cell. Its key is Option-Return, rebindable in Settings > Keyboard.
  • The focused grid reads that key from keyDown. It is not a menu key equivalent, since Option-Return breaks a line in a text field and AppKit hands an equivalent to the menu first.
  • A key the grid reads conflicts with a binding in any context, since a menu item would take the chord before the grid.
  • Return and double-click behave as before.
  • Bundled fix: Return or typing on a checkbox cell opened a text field over the checkbox.

Screenshots

Before After Editor
Light Before light After light Editor light
Dark Before dark After dark Editor dark

Test plan

  • DataGridValueEditorResolutionTests, DataGridValueEditorTests, DataGridValueEditorMenuTests: new, cover which editor each cell resolves to, the menu item and its title, and the open-editor guard.
  • ShortcutConflictTests: two new cases for the cross-context conflict.
  • DataGridEditingTests, DataGridRowMenuTests, MainMenuBuilderTests: unchanged, pass.

Fixes #4315

@datlechin
datlechin merged commit 9a102b2 into main Nov 20, 2026
20 of 22 checks passed
@datlechin
datlechin deleted the feat/grid-open-value-editor branch November 20, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Quick Look for JSON Fields

1 participant