Skip to content

Instantly share code, notes, and snippets.

@aninde
Created May 7, 2021 16:24
Show Gist options
  • Select an option

  • Save aninde/c5701f022892a84e7abc0edfb516e05d to your computer and use it in GitHub Desktop.

Select an option

Save aninde/c5701f022892a84e7abc0edfb516e05d to your computer and use it in GitHub Desktop.
title Keyboard navigation
permalink /next/keyboard-navigation
canonicalUrl /keyboard-navigation
tags
key bindings

Keyboard navigation

[[toc]]

Navigation

Windows Shortcut key macOS Shortcut key Action
Arrow Up ↑ Arrow Up ↑ Move to the cell above current active cell if exists
Arrow Down ↓ Arrow Down ↓ Move to cell underneath current active cell if exists
Arrow Right → Arrow Right → Move to the cell on the right side of the current active cell if exists
Arrow Left ← Arrow Left ← Move to the cell on the left side of current active cell if exists
Tab Tab Move to the cell on the right side of the current active cell if exists
Tab + Shift Tab + Shift Move to the cell on the left side of current active cell if exists
Home Fn + Arrow Left ← Move to the first cell in a row
End Fn + Arrow Right → Move to the last cell in a row
Ctrl + Home Ctrl + Fn + Arrow Left ←,
Cmd + Home
Move to the first cell in a column
Ctrl + End Ctrl + Fn + Arrow Right →,
Cmd + End
Move to the last cell in a column

Selection

Windows Shortcut key macOS Shortcut key Action
Ctrl + A Cmd + A Select all
Shift + Arrow Up ↑ Shift + Arrow Up ↑ Extend selection of the cell above
Shift + Arrow Down ↓ Shift + Arrow Down ↓ Extend selection of the cell underneath
Shift + Arrow Right → Shift + Arrow Right → Extend selection of the cell on the right
Shift + Arrow Left ← Shift + Arrow Left ← Extend selection of the cell on the left
Shift + Home Shift + Fn + Arrow Left ←,
Shift + Home
Select all cells in the row to the left including the current cell
Shift + End Shift + Fn + Arrow Right →,
Shift + End
Select all cells in the row to the right including the current cell
Ctrl + Shift + Home Ctrl + Shift + Fn + Arrow Left ←,
Cmd + Shift + Home
Select all cells in the column to the top including the current cell
Ctrl + Shift + End Ctrl + Shift + Fn + Arrow Right →,
Cmd + Shift + End
select all cells in the column to the bottom including the current cell
Ctrl + M Cmd + M merge/unmerge selected cells when plugin mergeCells are enabled

Controlling the editor

Windows Shortcut key macOS Shortcut key Action
Enter ⏎ Enter ⏎ open/close cell editor
F2 F2 open cell editor
Esc Esc cancel editing and close cell editor
Backspace Backspace empty cell
Delete Delete empty cell
Shift + Enter ⏎ Shift + Enter ⏎ opens editor and move to the cell above current active cell (if exists)
Ctrl + Enter ⏎ Ctrl + Enter ⏎ opens editor and adds new line in the cell
Ctrl + C Cmd + C copy cell's content
Ctrl + X Cmd + X cut cell's content
Ctrl + V Cmd + V pastle cell's content
Ctrl + Enter ⏎ Cmd + Enter ⏎ fill all selected cells with edited cell's value
Ctrl + Z Cmd + Z undo
Ctrl + Y Cmd + Y redo

Context menu

Windows Shortcut key macOS Shortcut key Action
Arrow Down ↓ Arrow Down ↓ move to the next option in context menu
Arrow Up ↑ Arrow Up ↑ move to the previous option in context menu
Enter ⏎ Enter ⏎ select option from context menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment