Jump to content

VisualEditor/Portal/Keyboard shortcuts: Difference between revisions

From mediawiki.org
Content deleted Content added
Line 109: Line 109:


{{anchor|Template editor dialog shortcuts and keyboard interactions}}
{{anchor|Template editor dialog shortcuts and keyboard interactions}}
== Template editor dialog shortcuts and keyboard interactions ==
==<translate> Template editor dialog shortcuts and keyboard interactions </translate>==


These shortcuts only apply when [[Help:VisualEditor/User guide#Editing templates|editing a template instance]] in the pop-up dialog. Those marked with a * only apply in the cases of [[Help:VisualEditor/User guide#Editing multi-part template content|multi-part template content]]. The shortcuts can be used to turn a single template into multi-part template content by adding another template or a wikitext part.
<translate>These shortcuts only apply when [[Help:VisualEditor/User guide#Editing templates|editing a template instance]] in the pop-up dialog. Those marked with a * only apply in the cases of [[Help:VisualEditor/User guide#Editing multi-part template content|multi-part template content]]. The shortcuts can be used to turn a single template into multi-part template content by adding another template or a wikitext part.</translate>


{| style="text-align:center; margin:auto;" cellpadding="8"
{| style="text-align:center; margin:auto;" cellpadding="8"
Line 122: Line 122:
|-
|-
| {{Key press|Spacebar}}
| {{Key press|Spacebar}}
| Toggle a checkbox, adding or removing a parameter
| <translate>Toggle a checkbox, adding or removing a parameter</translate>
|
|
| {{Key press|Spacebar}}
| {{Key press|Spacebar}}
Line 129: Line 129:
|-
|-
| {{Key press|Enter}}
| {{Key press|Enter}}
| Add a parameter and immediately switch the<br />focus to the input to start adding a value
| <translate>Add a parameter and immediately switch the<br />focus to the input to start adding a value</translate>
|
|
| {{Key press|Enter}}
| {{Key press|Enter}}
Line 136: Line 136:
|-
|-
| {{Key press|Ctrl|Shift|D}}
| {{Key press|Ctrl|Shift|D}}
| Add an [[Help:VisualEditor/User guide#Adding undocumented parameters|undocumented parameter]]
| <translate>Add an [[Help:VisualEditor/User guide#Adding undocumented parameters|undocumented parameter]]</translate>
|
|
| {{Key press|Cmd|Shift|D}}
| {{Key press|Cmd|Shift|D}}
Line 143: Line 143:
|-
|-
| {{Key press|Ctrl|D}}
| {{Key press|Ctrl|D}}
| Add a template* (linked, not nested)
| <translate>Add a template* (linked, not nested)</translate>
| [[File:OOjs UI icon trash.svg|20px]]
| [[File:OOjs UI icon trash.svg|20px]]
| {{Key press|Cmd|D}}
| {{Key press|Cmd|D}}
Line 150: Line 150:
|-
|-
| {{Key press|Ctrl|Shift|Y}}
| {{Key press|Ctrl|Shift|Y}}
| Add a wikitext part*
| <translate>Add a wikitext part*</translate>
| [[File:OOjs UI icon puzzle-ltr.svg|20px]]
| [[File:OOjs UI icon puzzle-ltr.svg|20px]]
| {{Key press|Cmd|Shift|Y}}
| {{Key press|Cmd|Shift|Y}}
Line 157: Line 157:
|-
|-
| {{Key press|Ctrl|Del}}
| {{Key press|Ctrl|Del}}
| Delete a part (template or wikitext)<br />when selected in the sidebar*
| <translate>Delete a part (template or wikitext)<br />when selected in the sidebar*</translate>
| [[File:OOjs UI icon wikiText.svg|20px]]
| [[File:OOjs UI icon wikiText.svg|20px]]
| {{Key press|Cmd|Del}}
| {{Key press|Cmd|Del}}
Line 164: Line 164:
|-
|-
| {{Key press|Ctrl|Shift|Up}}
| {{Key press|Ctrl|Shift|Up}}
| Move a part up when selected in the sidebar*
| <translate>Move a part up when selected in the sidebar*</translate>
| [[File:OOjs UI icon upTriangle.svg|20px]]
| [[File:OOjs UI icon upTriangle.svg|20px]]
| {{Key press|Cmd|Shift|Up}}
| {{Key press|Cmd|Shift|Up}}
Line 171: Line 171:
|-
|-
| {{Key press|Ctrl|Shift|Down}}
| {{Key press|Ctrl|Shift|Down}}
| Move a part down when selected in the sidebar*
| <translate>Move a part down when selected in the sidebar*</translate>
| [[File:OOjs UI icon downTriangle.svg|20px]]
| [[File:OOjs UI icon downTriangle.svg|20px]]
| {{Key press|Cmd|Shift|Down}}
| {{Key press|Cmd|Shift|Down}}

Revision as of 15:11, 8 February 2022

This page outlines the various mouse and keyboard commands supported by VisualEditor. If you have ideas for new useful commands, or have noticed problems with the existing ones, please let us know on the Feedback Page.

For the full list of Wikipedia shortcuts, see: w:WP:Keyboard shortcuts.

Commonly-used shortcuts

PC shortcut Action Symbol Mac shortcut

Ctrl+B Bold ⌘ Cmd+B

Ctrl+I Italic ⌘ Cmd+I

Ctrl+K Insert link ⌘ Cmd+K

Ctrl+⇧ Shift+K Insert citation ⌘ Cmd+⇧ Shift+K

Ctrl+X Cut ⌘ Cmd+X

Ctrl+C Copy ⌘ Cmd+C

Ctrl+V Paste ⌘ Cmd+V

Ctrl+Z Undo ⌘ Cmd+Z

Ctrl+⇧ Shift+Z Redo ⌘ Cmd+⇧ Shift+Z

Tab ↹ Indent list Tab ↹

⇧ Shift+Tab ↹ Outdent list ⇧ Shift+Tab ↹

Ctrl+\ Clear formatting ⌘ Cmd+\

Alt+s Save Ctrl+⌥ Option+s

Template editor dialog shortcuts and keyboard interactions

These shortcuts only apply when editing a template instance in the pop-up dialog. Those marked with a * only apply in the cases of multi-part template content. The shortcuts can be used to turn a single template into multi-part template content by adding another template or a wikitext part.

PC shortcut Action Symbol Mac shortcut

Spacebar Toggle a checkbox, adding or removing a parameter Spacebar

↵ Enter Add a parameter and immediately switch the
focus to the input to start adding a value
↵ Enter

Ctrl+⇧ Shift+D Add an undocumented parameter ⌘ Cmd+⇧ Shift+D

Ctrl+D Add a template* (linked, not nested) ⌘ Cmd+D

Ctrl+⇧ Shift+Y Add a wikitext part* ⌘ Cmd+⇧ Shift+Y

Ctrl+Del Delete a part (template or wikitext)
when selected in the sidebar*
⌘ Cmd+Del

Ctrl+⇧ Shift+ Move a part up when selected in the sidebar* ⌘ Cmd+⇧ Shift+

Ctrl+⇧ Shift+ Move a part down when selected in the sidebar* ⌘ Cmd+⇧ Shift+

Full list of mouse and keyboard interactions

Feature Action
Move cursor with mouse Clicking
Move cursor with keyboard Direction keys[1]
Select content with mouse Dragging
Select content with mouse Double and triple clicking
Select content with keyboard Shift + (Direction keys[1])
Select word with mouse Double click word
Select block with mouse Triple click block
Adjust selection with mouse Shift + Click
Load insertion formatting from content Move cursor
Insert text with keyboard Character and number keys
Insert special characters with keyboard Multiple character or number keys using an input method editor
Delete with keyboard Backspace and delete keys
Delete word with keyboard (Option or Alt) + Backspace and delete keys
Delete line with keyboard (Command or Control) + Backspace and delete keys
Undo with keyboard (Command or Control) + Z
Redo with keyboard (Command or Control) + Shift + Z
Copy selection with keyboard (Command or Control) + C
Cut selection with keyboard (Command or Control) + X
Paste selection with keyboard (Command or Control) + V
Copy selection from menu "Copy" in context or browser menu
Cut selection from menu "Cut" in context or browser menu
Paste selection from menu "Paste" in context or browser menu
Highlight object with mouse Clicking
Toggle bold on selected content and in insertion formatting with mouse Click bold tool in toolbar
Toggle italic on selected content and in insertion formatting with mouse Click italic tool in toolbar
Toggle bold on selected content and in insertion formatting with keyboard (Command or Control) + B
Toggle italic on selected content and in insertion formatting with keyboard (Command or Control) + I
Split block with keyboard Enter
Merge blocks with keyboard Backspace at beginning or delete at end of block boundary
Switch the direction you write in between right-to-left and left-to-right (Command or Control) + Shift + X

Notes

  1. 1.0 1.1 Direction keys: Up, down, left, right, home, end, page-up and page-down