Wikipedia:Keyboard shortcuts

The MediaWiki software contains many keyboard shortcuts. You can use them to access certain features of Wikipedia more quickly.

Using access keys

An access key allows a computer user to immediately jump to a specific part of a web page via the keyboard. On Wikipedia, access keys allow you to do a lot more—protect a page, show page history, publish your changes, show preview text, and so on. See the next section for the full list.

Most web browsers require holding down one or two modifier keys to use an access key. Different web browsers invoke access keys in different ways. Please use the list below to determine the appropriate key combination for your browser and system:

BrowserOperating systemInstructions
Google Chrome & Chromium
Opera 15+
Windowshold Alt+access key
hold Alt+⇧ Shift+access key
hold Alt+Control+⇧ Shift+access key[1]
Chrome OS
Linuxhold Alt+⇧ Shift+access key
hold Alt+access key
macOShold Control+⌥ Option+access key
FirefoxWindows, Linuxhold Alt+⇧ Shift+access key[2]
macOShold Control+⌥ Option+access key
Internet Explorer
MS Edge
Windowshold Alt+access key[3]
SafarimacOShold Control+⌥ Option+access key
Windowshold Alt+access key
Older browsers

List of access keys

Personal tools
.My user page
lMy watchlist (only available to logged-in users)
nMy talk
oLog in (only available when logged-out)
yMy contributions
Current page tools
eEdit this page, or view source if you are blocked or the page is protected from editing
vEdit with VisualEditor (if available, namespace must be: (Main), File, User, Category, or Help)
gOpen associated Wikidata item
hView history
jWhat links here
kRelated changes
mMove page (only available to logged-in users)
pPrintable version
wWatch / unwatch page (only available to logged-in users)
tSwitch to talk page
*Purge the page's cache (only available to logged-in users with the "Purge option" gadget)
Talk pages
+Start a new discussion
cSwitch to content page
Editing a page
,Move cursor to edit box
bMove cursor to edit summary
iFlag edit as minor (only available to logged-in users)
pShow preview
vShow changes
sPublish page
wToggle "Watch this page"
Admin only
dDelete / undelete current page
=Protect / unprotect current page

Sortable list

Currently, in the a–z range, only a and o[4] remain unassigned. p, v, w are assigned to multiple functions, depending on the context.

KeyFunctionContext
fMove cursor to search boxSite navigation
qSpecial pagesSite navigation
rRecent changesSite navigation
uUpload file (only available to logged-in users)Site navigation
xRandom articleSite navigation
zMain PageSite navigation
.My user pagePersonal tools
lMy watchlist (only available to logged-in users)Personal tools
nMy talkPersonal tools
oLog in (only available when logged-out)Personal tools
yMy contributionsPersonal tools
eEdit this page / view source (if you are blocked or the page is protected from editing)Current page tools
vEdit with VisualEditor (if available, namespace must be: (Main), File, User, Category or Help)Current page tools
gOpen associated Wikidata itemCurrent page tools
hView historyCurrent page tools
jWhat links hereCurrent page tools
kRelated changesCurrent page tools
mMove page (only available to logged-in users)Current page tools
pPrintable versionCurrent page tools
wWatch / unwatch page (only available to logged-in users)Current page tools
tSwitch to talk pageCurrent page tools
*Purge the page's cache (only available to logged-in users with the "Purge option" gadget)Current page tools
+Start a new discussionTalk pages
cSwitch to content pageTalk pages
,Move cursor to edit boxEditing page
bMove cursor to edit summaryEditing page
iFlag edit as minor (only available to logged-in users, not IP users)Editing page
pShow previewEditing page
vShow changesEditing page
sPublish pageEditing page
wToggle “Watch this page”Editing page
dDelete / undelete current pageAdmin only
=Protect / unprotect current pageAdmin only

Display access keys

By modifying your user CSS file, access key shortcuts can be displayed before internal links on any Wikipedia page.

CSS with shortcuts shown on hover
Play the video to see how this CSS snippet works. The skin used here is Vector, but this will work for any skin.
a:hover[accesskey]:before {    content: " " attr(accesskey) " ";    text-transform: uppercase;    white-space: pre;    font-family: sans-serif;    margin-right: 0.5ex;    color: black;}
CSS with shortcuts shown always
Adding this code displays the access keys on every Wikipedia page, as shown in this picture.
a[accesskey]:before {    content: " " attr(accesskey) " ";    text-transform: uppercase;    white-space: pre;    font-family: sans-serif;    margin-right: 0.5ex;    color: black;}
CSS with shortcuts shown always with a box
This is identical to the above code except the access keys are displayed with boxes around them.
a[accesskey]:before {    content: " " attr(accesskey) " ";    text-transform: uppercase;    white-space: pre;    border: thin solid;    font-family: sans-serif;    text-decoration: underline overline;    margin-right: 0.5ex;    color: black;}

This will not display the accesskeys provided by the VisualEditor (or the mw:2017 wikitext editor), such as 's' to publish the page, as those accesskeys are implemented differently.

Accessibility of access keys

Keyboard shortcuts, in the way they are implemented on Wikipedia, are useful for some users with disabilities and do not require JavaScript to work. At the same time, they are bothersome for some screen reader users because it interferes with the shortcuts of their screen reader. The best solution would be to have customizable keyboard shortcuts.

The accessibility of keyboard shortcuts (access keys) is a complicated matter. This feature, in its current implementation, was temporarily abandoned in WCAG 2.0, notably because it conflicts with the shortcuts of assistive technologies. Usage of access keys is currently discouraged in the online contents and applications.[needs update]

But presence of access keys is also an Authoring Tool Accessibility Guidelines (ATAG) requirement—the ATAG approach is particularly relevant in Wikipedia's case—where this matter is looked into thoroughly. In particular, ATAG requires the possibility to customize shortcuts. This should be requested in phab:T2477.

Currently, their presence in Wikipedia's interface can be problematic for some users and can be useful for others. But more importantly, it misleads developers into thinking that the interface is keyboard accessible. Requirements that need to be fulfilled for a website to be keyboard accessible are not related to keyboard shortcuts (G90, F42, SCR35, F58, F61).

Known issues: Gadgets which block keyboard shortcuts

  • Gadget wikEd blocks keyboard shortcuts on Google Chrome and Firefox.

User scripts that modify keyboard shortcuts

Some user scripts allow you to add more keyboard shortcuts for various actions or customize existing ones:

Disabling access keys

A gadget exists that may be enabled to remove access key functionality. This may be opted in to using Special:Preferences

See also

Notes

External links

🔥 Top keywords: Main PageSpecial:SearchIndian Premier LeagueWikipedia:Featured picturesPornhubUEFA Champions League2024 Indian Premier LeagueFallout (American TV series)Jontay PorterXXXTentacionAmar Singh ChamkilaFallout (series)Cloud seedingReal Madrid CFCleopatraRama NavamiRichard GaddDeaths in 2024Civil War (film)Shōgun (2024 miniseries)2024 Indian general electionJennifer PanO. J. SimpsonElla PurnellBaby ReindeerCaitlin ClarkLaverne CoxXXX (film series)Facebook2023–24 UEFA Champions LeagueYouTubeCandidates Tournament 2024InstagramList of European Cup and UEFA Champions League finalsJude BellinghamMichael Porter Jr.Andriy LuninCarlo AncelottiBade Miyan Chote Miyan (2024 film)