RFC 0085 — The keys, shown: a sheet of the shortcuts that work here
Status: implemented (2026-11-30) · Target: 0.66.0 · builds on RFC 0012, RFC 0055 and RFCs 0077–0084 · see Decisions
Summary
A Table has some thirty keys now: the grid's arrows, a range with
Shift, paste, fill down, undo, ⌘Enter for the selection,
⌘A twice, Quick Look, the new row's. They're documented in
docs/ui/table.md, which the app's users never read. Apps add their
own on top (⌘N, ⌘F, the palette's ⌘K). Nothing in the window says any of
them.
This RFC gives every app the sheet desktop apps have:
- ⌘/ (Ctrl+/), or ? outside a text field, opens a sheet of the keys that work here, also reachable from the ⌘K palette and from the app's Help menu.
- Grouped by where they work: the focused component's first ("This table"), then the app's own, then the window's (⌘K, ⌘P, ⌘/).
- Only what applies: a table that isn't edited doesn't list the
grid's keys; one without
selectdoesn't list the selection's. - On this platform: ⌘ and ⌥ on a Mac, Ctrl and Alt elsewhere, from
one
"Mod+D". - The app registers its own with
registerShortcuts, as it does its commands.
Motivation
- Keys nobody knows are keys nobody uses. RFCs 0078–0084 made the table a spreadsheet, and its value is in the keys. A user who doesn't know ⌘D fills down by hand.
- Each app writes this, or doesn't. A help page, a tooltip, a modal: the same list, kept by hand, out of date the next release.
- The components know their keys. A
Tableknows whether it's a grid, has a selection or a preview; it can say exactly what works, where a hand-kept list can't.
Current state (0.66)
registerCommandsfills the ⌘K palette with the app's commands; a command has atitle,subtitle,keywordsand anaction, but no key.- The window's own keys: ⌘K (the palette, once something is registered), ⌘P (print, RFC 0062), the menu's accelerators (RFC 0055), Quick Look.
@elyra/uicomponents handle their keys themselves, and document them in their pages' keyboard tables.- Global shortcuts (
App::global_shortcut) are OS-level, and a different thing: keys that work when the app isn't focused.
Design
The registry
import { registerShortcuts, showShortcuts } from "@elyra/runtime";
const off = registerShortcuts("app", [
{ keys: "Mod+N", label: "New invoice" },
{ keys: "Mod+Shift+F", label: "Find in all lists" },
]);
showShortcuts(); // the sheet, from a button of the app's own
keys: one or more combinations ("Mod+D",["Mod+Shift+Z", "Ctrl+Y"]), withModthe platform's ⌘ or Ctrl andAltits ⌥ or Alt. A key alone ("Space","F2","↑ ↓") is said as it is.label: what it does, in the app's words.when: optional, a sentence for where it works ("On a selected row").- A group is
"app"(the app's), or a component's: the runtime shows the focused element's nearest group first, so a component registers its own while it has the focus and takes it out when it loses it. - A command of
registerCommandswith akeysis listed too, and the palette shows its keys beside its title.
The sheet
- Opened by ⌘/ (Ctrl+/), ? when the
focus isn't in a text field (or a cell's editor), the palette's
Keyboard shortcuts, and an app menu item (
MenuItem::shortcuts(), RFC 0055, under Help where the platform has one). - What it shows: the focused component's group ("This table"), the
app's, then the window's. Each key in a
<kbd>, by its platform's names (⌘⇧Z on a Mac, Ctrl+Shift+Z elsewhere). - A filter at the top, for "fill" or "undo".
- A dialog (
role="dialog", its groups headings, each list a<dl>of key and what it does), closed by Esc, the focus back where it was, so the component's group is still the focused one's.
@elyra/ui's own
Tableregisters, while the focus is in it, the keys that apply to it: the rows' (↑/↓, Enter, Space), the selection's withselect, Quick Look's withpreview, the grid's, the range's, paste, fill and undo with an editable column and a write, Set's ⌘Enter withselecttoo, the new row's withoncreate, and the export's ⌘C. Its words are the table's own (words.js,en/nb).- Other components with keys of their own (
Combobox,DatePicker,TreeView,SplitPane,Tabs) do the same, each with its few.
Words
The sheet's: shortcuts, filterShortcuts, thisComponent(name),
appShortcuts, windowShortcuts, noShortcut(term); each component's
keys' labels in its own words.js group, and the platform's key names
(Mod, Alt, Shift, Enter, …) in the runtime's.
Implementation plan
runtime: the registry (registerShortcuts, groups, the focused element's nearest), the key names per platform, the sheet (dialog, filter, groups), ⌘/ and ?, Keyboard shortcuts in the palette, a command'skeys.framework:MenuItem::shortcuts(), an item that opens the sheet, and its place in the default Help menu.ui:Table's keys by what applies, and the other components' few; their words.- Words, in the runtime's and
@elyra/ui's groups anden/nb. - Tests: the registry and its groups, the focused group first, the
platform's names, the sheet's filter and its keys (⌘/, ?, not in a
field, Esc and the focus back), the palette's item and a command's
keys, the menu item;
Table's list for each mix ofselect,preview,edit,oncreate. - Docs:
components.md("The keys, shown"),menu.md,table.md(that the sheet lists its keys), the skill, CHANGELOG.
Open questions
- ⌘/ and ?, or one? Recommendation: both. ⌘/ is the desktop's (macOS apps, Google's, Slack's), ? the web's (GitHub's, Gmail's); ? only outside a text field, where it's a character.
- The focused component's group only, or every one on the page? Recommendation: the focused one's, and the app's and window's. Two tables on a page list the same keys twice; the one the user is in is the one they ask about.
- Keys the user changes? Recommendation: not in this RFC. Shown, not rebound; rebinding is a setting each key needs a home for.
- The menu item in the default Help menu? Recommendation: yes,
where the app has the default menu; an app with its own menu adds
MenuItem::shortcuts()where it wants it.
Decisions
Accepted 2026-11-30, with the open questions' recommendations:
- Both ⌘/ and ?, ? only outside a text field.
- The focused component's group, then the app's and the window's.
- No rebinding in this RFC.
MenuItem::shortcuts()in the default Help menu; an app with its own menu places it.
As built
As designed, with these differences:
- The menu item is
SystemItem::Shortcuts, as Print… isSystemItem::Print, not aMenuItem::shortcuts(). It has no accelerator: the page's ⌘/ opens the sheet, and a menu accelerator for the same key would toggle it twice. - The default Help menu has it on macOS always. On Windows and Linux a window has a menu only when the app has menus of its own or the diagnostics, as before; that menu's Help has it.
- The platform's key names are the keyboard's (⌘⇧⌥⌃ on a Mac, Ctrl, Shift, Alt, Enter elsewhere), not words in the catalog: they're what's printed on the keys.
- A component's group is registered while it's mounted, for its
element; the sheet picks the one the focus is in.
@elyra/uidoes it through one helper (useKeys) forTable,Combobox,DatePicker,TreeView,TabsandSplitPane. - The words are the runtime's
shortcutsgroup (the sheet's) and each component's ownkeys…words;thisComponent(name)is a group'stitle, which a component gives (itslabel, else "This table").
Not in this RFC
- Changing a key (rebinding), or turning one off.
- Shortcuts that work when the app isn't focused (
global_shortcut, already there) in the sheet. - A tooltip with each button's key.
Alternatives considered
- A help page per app. Written by hand, out of date, and it can't say what works where the user is.
- Keys in the palette only. The palette finds a command by name; a user who wants to know what ⌘D does there doesn't know to search "fill".
- Tooltips on the table's header. They say one key at a time, to a mouse, which is the user who needs them least.