pub fn key_bindings() -> Vec<KeyBinding>Expand description
The default keymap in KEY_CONTEXT: Excel’s, with Cmd on macOS.
secondary- is Cmd on macOS and Ctrl elsewhere, so one entry serves
every platform.
The context menu opens with Shift+F10 and the Menu key (menu; Mac
keyboards have none). Not bound: tab (leaves the grid).
In GROUP_PANEL_KEY_CONTEXT, on a chip, Delete and Backspace remove
its level, and Enter and Space press the focused chip or button as in
any toolbar: the grid’s own Enter and Space are unbound there.
In EDITOR_KEY_CONTEXT the editor’s keys commit and cancel; every
other key of KEY_CONTEXT is NoAction there, built from the list
itself, so a new key of the grid is silenced in the editor too. An
application unsilences one with its own binding in that context after
init.
In COLUMN_CHOOSER_KEY_CONTEXT, Alt+↑ and Alt+↓ move the highlighted
column up and down its zone, and Space shows or hides it.