Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Using access keys  



1.1  List of access keys  





1.2  Sortable list  







2 Display access keys  





3 Accessibility of access keys  





4 Known issues: Gadgets which block keyboard shortcuts  





5 User scripts that modify keyboard shortcuts  





6 Disabling access keys  





7 See also  





8 Notes  





9 External links  














Wikipedia:Keyboard shortcuts






العربية
تۆرکجه

Bosanski
Català
Čeština
Dansk
Deutsch
Español
Euskara
فارسی
Français
Galego

ि
Hrvatski
Bahasa Indonesia
Italiano
Қазақша
Magyar


Nederlands

Norsk bokmål
ି
Polski

Suomi
Svenska

Türkçe
Tiếng Vit

 

Edit links
 









Project page
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Meta-Wiki
 
















Appearance
   

 





Page semi-protected

From Wikipedia, the free encyclopedia
 


  • WP:KB
  • WP:KBD
  • WP:KS
  • The MediaWiki software contains many keyboard shortcuts. You can use them to access certain features of Wikipedia more quickly.

    Using access keys

    Anaccess 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:

    Browser Operating system Instructions
    Google Chrome & Chromium
    Opera 15+
    Windows hold Alt+access key
    hold Alt+⇧ Shift+access key
    hold Alt+Control+⇧ Shift+access key[1]
    Chrome OS
    Linux hold Alt+⇧ Shift+access key
    hold Alt+access key
    macOS hold Control+⌥ Option+access key
    Firefox Windows, Linux hold Alt+⇧ Shift+access key[2]
    macOS hold Control+⌥ Option+access key
    Internet Explorer
    MS Edge
    Windows hold Alt+access key[3]
    Safari macOS hold Control+⌥ Option+access key
    Windows hold Alt+access key

    Older browsers

    List of access keys

    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.

    Key Function Context
    f Move cursor to search box Site navigation
    q Special pages Site navigation
    r Recent changes Site navigation
    u Upload file (only available to logged-in users) Site navigation
    x Random article Site navigation
    z Main Page Site navigation
    . My user page Personal tools
    l My watchlist (only available to logged-in users) Personal tools
    n My talk Personal tools
    o Log in (only available when logged-out) Personal tools
    y My contributions Personal tools
    e Edit this page / view source (if you are blocked or the page is protected from editing) Current page tools
    v Edit with VisualEditor (if available, namespace must be: (Main), File, User, CategoryorHelp) Current page tools
    g Open associated Wikidata item Current page tools
    h View history Current page tools
    j What links here Current page tools
    k Related changes Current page tools
    m Move page (only available to logged-in users) Current page tools
    p Printable version Current page tools
    w Watch / unwatch page (only available to logged-in users) Current page tools
    t Switch to talk page Current page tools
    * Purge the page's cache (only available to logged-in users with the "Purge option" gadget) Current page tools
    + Start a new discussion Talk pages
    c Switch to content page Talk pages
    , Move cursor to edit box Editing page
    b Move cursor to edit summary Editing page
    i Flag edit as minor (only available to logged-in users, not IP users) Editing page
    p Show preview Editing page
    v Show changes Editing page
    s Publish page Editing page
    w Toggle “Watch this page” Editing page
    d Delete / undelete current page Admin only
    = Protect / unprotect current page Admin 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

    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

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

    See also

    Notes

    1. ^ For some keys (e.g., r), both Alt and Alt+⇧ Shift work; For other keys (e.g. f), only Alt+⇧ Shift works; For other keys (e.g. .), only Alt works.
  • ^ The Alt key without Shift can be used if a Firefox preference in "about:config" is changed: set "ui.key.generalAccessKey" to 18 (see MozillaZine Knowledge Base).
  • ^ In some versions you may then need to press ↵ Enter
  • ^ o is technically assigned, but only for logged-out users.
  • ^ Copy the following code, edit your user JavaScript, then paste:
    {{subst:lusc|1= User:Enterprisey/up-one-lvl-kbd.js}}
  • ^ Copy the following code, edit your user JavaScript, then paste:
    {{subst:lusc|1= User:Enterprisey/hover-edit-section.js}}
  • ^ Copy the following code, edit your user JavaScript, then paste:
    {{subst:lusc|1= User:Enterprisey/page-info-kbd-shortcut.js}}
  • ^ Copy the following code, edit your user JavaScript, then paste:
    {{subst:lusc|1= User:Enterprisey/superjump.js}}
  • ^ Copy the following code, edit your user JavaScript, then paste:
    {{subst:lusc|1= User:Guarapiranga/accessKeysCheatSheet.js}}
  • External links


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Keyboard_shortcuts&oldid=1227877100"

    Categories: 
    Wikipedia features
    Wikipedia accessibility
    WikiProject Accessibility
    Hidden category: 
    Wikipedia semi-protected project pages
     



    This page was last edited on 8 June 2024, at 08:13 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki