-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Keyboard shortcuts support #71
Copy link
Copy link
Closed
Labels
[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Milestone
Description
For accessibility and power-users both, we should always think about keyboard support. This was first brought up in #61, but deserves being fleshed out more.
The editor already has keyboard support for most formatting controls, including the "Paragraph" type switcher, which we are pondering moving to the side. Though since this will likely expand a fair bit beyond paragraphs, headings and preformatted, maybe that needs love too.
Many of these are existing keyboard shortcuts that should probably stay intact for back compat.
Inline formatting:
- Bold
⌘B - Italic
⌘I - Link/edit link
⌘K(or paste around selected text) Being handled in Add remaining editable shortcuts #4411. - Unlink
^⌥SBeing handled in Add remaining editable shortcuts #4411. - Strikethrough
^⌥DBeing handled in Add remaining editable shortcuts #4411. - Change heading size
^⌥↑for increase,^⌥↓for decrease See Keyboard shortcuts support #71 (comment).
Hidden (?) controls:
- Undo
⌘Z - Redo
⌘Y - Cut
⌘X - Copy
⌘C - Paste
⌘V - Select All
⌘ASee Expand selection on consecutive ⌘A commands #4369 now. - Keyboard shortcuts cheat sheet — currently
^⌥H, should it instead/also beShift ? - Underline
⌘U - Code
^⌥XBeing handled in Add remaining editable shortcuts #4411. - Align center
^⌥C - Align left
^⌥L - Align right
^⌥R - Justify
^⌥J - Bullets
^⌥U - Ordered list
^⌥O - Remove link
^⌥SBeing handled in Add remaining editable shortcuts #4411. - ⌘+ENTER (Ctrl+Enter for Windows) to create a separator
Markdown-esque shortcuts/syntactic sugar:
- Code: wrap text in backticks,
` - Bullets:
*or-on newline - Ordered list:
1.or1)on newline - Blockquote:
>on newline - H2-H6:
##-######on newline - Horizontal line:
---on newline
Insertion/block level controls:
- Insert block:
^⌥M(for fallback) and/on newline (see / on a newline should open the insertion dialog #24) - Move block up
^⌥↑ - Move block down
^⌥↓ - Open block type switcher
⌘~then↑/↓andEnterfor select - Toggle between block types
~
Inserter:
- Invoked where the cursor is, by typing
/on newline or pressing^⌥M, then↑/↓andEnterfor select
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.