Keyboard shortcuts
Look up the default key of every grid action, and the keymap name that rebinds it.
Mod is the Cmd key on macOS and the Ctrl key elsewhere. The ctrl keys are the physical Ctrl key on every platform. Rebind a key with the keymap prop on the keymap name in the third column. The built-in editors handle their keys themselves, and bind no keymap name to Enter, Shift+Enter, Tab, or Shift+Tab. Outside an edit, Escape clears the selection and the checked rows.
Ctrl+Space (selectColumn) can switch the input source on macOS and toggle the IME on Windows with a Chinese layout. Rebind selectColumn when that shortcut is on.
Common keys
These keys cover most daily work. The sections below list every action.
| Action | Keys | Keymap name |
|---|---|---|
| Move down | ArrowDown | moveDown |
| Extend selection down | Shift+ArrowDown | extendDown |
| Select all | Mod+A | selectAll |
| Copy | Mod+C | none |
| Paste | Mod+V | none |
| Edit cell | Enter, F2, Space | edit |
| Cancel edit | Escape | cancel |
| Delete contents | Delete, Backspace | clearContents |
| Undo | Mod+Z | undo |
| Redo | Mod+Y, Mod+Shift+Z | redo |
| Fill down | Mod+D | fillDown |
Every action by group: Navigation, Selection, Editing, Clipboard & Fill, History, Other keys.
Navigation
| Action | Keys | Keymap name | Page |
|---|---|---|---|
| Open or close group | Enter, Space | toggleGroupRow | Keyboard navigation |
| Open group | ArrowRight | expandGroupRow | Keyboard navigation |
| Close group | ArrowLeft | collapseGroupRow | Keyboard navigation |
| Move up | ArrowUp | moveUp | Keyboard navigation |
| Move down | ArrowDown | moveDown | Keyboard navigation |
| Move left | ArrowLeft | moveLeft | Keyboard navigation |
| Move right | ArrowRight | moveRight | Keyboard navigation |
| Move up (keep selection) | Alt+ArrowUp | moveUpKeepSelection | Keyboard navigation |
| Move down (keep selection) | Alt+ArrowDown | moveDownKeepSelection | Keyboard navigation |
| Move left (keep selection) | Alt+ArrowLeft | moveLeftKeepSelection | Keyboard navigation |
| Move right (keep selection) | Alt+ArrowRight | moveRightKeepSelection | Keyboard navigation |
| Scroll active cell into view | Mod+Enter | scrollActiveIntoView | Keyboard navigation |
| Move to row start | Home | moveRowStart | Keyboard navigation |
| Move to row end | End | moveRowEnd | Keyboard navigation |
| Jump to edge (up) | Mod+ArrowUp | jumpUp | Keyboard navigation |
| Jump to edge (down) | Mod+ArrowDown | jumpDown | Keyboard navigation |
| Jump to edge (left) | Mod+ArrowLeft | jumpLeft | Keyboard navigation |
| Jump to edge (right) | Mod+ArrowRight | jumpRight | Keyboard navigation |
| Move to first cell | Mod+Home | moveFirstCell | Keyboard navigation |
| Move to last cell | Mod+End | moveLastCell | Keyboard navigation |
| Page up | PageUp | pageUp | Keyboard navigation |
| Page down | PageDown | pageDown | Keyboard navigation |
Selection
| Action | Keys | Keymap name | Page |
|---|---|---|---|
| Extend selection up | Shift+ArrowUp | extendUp | Keyboard navigation |
| Extend selection down | Shift+ArrowDown | extendDown | Keyboard navigation |
| Extend selection left | Shift+ArrowLeft | extendLeft | Keyboard navigation |
| Extend selection right | Shift+ArrowRight | extendRight | Keyboard navigation |
| Extend selection to edge (up) | Mod+Shift+ArrowUp | extendJumpUp | Keyboard navigation |
| Extend selection to edge (down) | Mod+Shift+ArrowDown | extendJumpDown | Keyboard navigation |
| Extend selection to edge (left) | Mod+Shift+ArrowLeft | extendJumpLeft | Keyboard navigation |
| Extend selection to edge (right) | Mod+Shift+ArrowRight | extendJumpRight | Keyboard navigation |
| Extend selection to first cell | Mod+Shift+Home | extendFirstCell | Keyboard navigation |
| Extend selection to last cell | Mod+Shift+End | extendLastCell | Keyboard navigation |
| Check rows up to the first row | Shift+Home | extendRowsToStart | Checked rows |
| Check rows down to the last row | Shift+End | extendRowsToEnd | Checked rows |
| Check rows up one page | Shift+PageUp | extendRowsPageUp | Checked rows |
| Check rows down one page | Shift+PageDown | extendRowsPageDown | Checked rows |
| Select row | Shift+Space | selectRow | Keyboard navigation |
| Select column | Ctrl+Space | selectColumn | Keyboard navigation |
| Select all | Mod+A | selectAll | Keyboard navigation |
| Check or uncheck row | Ctrl+Shift+Space | toggleRow | Checked rows |
| Check or uncheck all rows | Mod+Shift+Enter | toggleAllRows | Checked rows |
| Open column menu | Shift+Alt+ArrowDown | openColumnMenu | Column headers and groups |
| Open column filter | Shift+Alt+ArrowUp | openColumnFilter | Header filter |
| Search | Mod+F with DataGridSearch | focusSearch | Quick search |
| Find and replace | Shift+Alt+Enter with data-grid-find-replace | openFindReplace | Find and replace |
| Find | Mod+F with data-grid-find-replace | openFind | Find and replace |
| Open comments | Shift+F2 with data-grid-comments | openComments | Add comments to cells |
Editing
| Action | Keys | Keymap name | Page |
|---|---|---|---|
| Edit cell | Enter, F2, Space | edit | Editable columns |
| Cancel edit | Escape | cancel | Editable columns |
| Delete contents | Delete, Backspace | clearContents | Editable columns |
| Insert row below | Mod+Shift+F | insertRowBelow | Row operations |
| Duplicate row | Mod+Shift+X | duplicateRow | Row operations |
| Insert row above | Mod+Shift+U | insertRowAbove | Row operations |
| Delete row(s) | Mod+Shift+Backspace | deleteRows | Row operations |
| Move rows up | Shift+Alt+PageUp | moveRowsUp | Row order |
| Move rows down | Shift+Alt+PageDown | moveRowsDown | Row order |
| Move column toward start | None (bind it in keymap) | moveColumnTowardStart | Column order and pinning |
| Move column toward end | None (bind it in keymap) | moveColumnTowardEnd | Column order and pinning |
| Widen column | None (bind it in keymap) | widenColumn | Column sizing |
| Narrow column | None (bind it in keymap) | narrowColumn | Column sizing |
| Open link | Alt+Enter | openLink | Built-in cell types |
| Open cell menu | None (bind it in keymap) | openCellMenu | Context menu |
| Type to replace | Any printable key | typeToReplace | Editable columns |
Clipboard & Fill
| Action | Keys | Keymap name | Page |
|---|---|---|---|
| Fill down | Mod+D with data-grid-fill | fillDown | Fill handle |
| Fill right | Mod+R with data-grid-fill | fillRight | Fill handle |
| Copy | Mod+C | none | Clipboard |
| Cut | Mod+X | none | Clipboard |
| Paste | Mod+V | none | Clipboard |
History
| Action | Keys | Keymap name | Page |
|---|---|---|---|
| Undo | Mod+Z with data-grid-history | undo | Undo and redo |
| Redo | Mod+Y, Mod+Shift+Z with data-grid-history | redo | Undo and redo |
Other keys
| Action | Keys | Keymap name | Page |
|---|---|---|---|
| Open the shortcuts dialog | ? with useDataGridKeybindings in plugins | openKeybindings | Shortcut remapping |
| Open the cell menu | Shift+F10 with DataGridContextMenu mounted, on Windows and Linux | none | Context menu |
| Focus the toolbar search | Mod+F with DataGridSearch mounted, while focus is in the grid or its toolbar. With data-grid-find-replace mounted, Mod+F in the grid opens Find, and the toolbar search loses Mod+F. Set focusSearch in keymap to bind another key to the search | focusSearch | Quick search |
| Use the find panel | Mod+F focuses the find field. Enter goes to the next match and Shift+Enter to the previous one. Mod+Enter in the replace field replaces every match. Escape closes the panel | none | Find and replace |
Related
- Shortcut remapping: change the keys
- Global shortcuts: keys outside the grid
- Plugin commands and shortcuts: keys from a plugin