Wikipedia:Keyboard shortcuts

From Wikipedia, the free encyclopedia
  (Redirected from Wikipedia:K)
Jump to: navigation, search
For the Wikipedia article, see access keys.
Shortcuts:

The Vector skin, which is the default on Wikipedia, contains many keyboard shortcuts. You can use them to access certain features of Wikipedia more quickly.

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.

Using access keys[edit]

An Access Key allows a computer user to immediately jump to a specific part of a web page via the keyboard. In Wikipedia, Access Keys allow you to do a lot more - protect a page, show page history, save your changes, show preview text, and so on. See the next section for the full list.

Modifier keys[edit]

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:

  • Opera: press and release Shift+Esc, then press access key

List of access keys[edit]

Display access keys[edit]

Adding the following entry to your user CSS file will display access keys before links that have them.[clarification needed] (Note that this does not work in Internet Explorer versions lower than 8.0, since they don't support the :before CSS selector.)

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;
}

Changing and disabling access keys[edit]

Access keys can be disabled by going to the Special:Preferences/Gadgets tab in your preferences and checking the box "Disable access keys". It is possible to disable or modify specific access keys by adding code to your user JavaScript file, such as the examples below. Note that access keys are case-sensitive.

d (delete page):

/* disable Wikipedia access keys/keyboard shortcuts */
ta['ca-delete'] = new Array('', 'Delete this page');

e (edit page):

/* disable Wikipedia access keys/keyboard shortcuts */
ta['ca-edit'] = new Array('', 'Edit this page');

f ("find"/go to search box):

/* disable Wikipedia access keys/keyboard shortcuts */
ta['search'] = new Array('', 'Search this wiki');

Other Accesskeys are can be found at System messages.

Accessibility of access keys[edit]

The accessibility of keyboard shortcuts (access keys) is a complicated matter. This feature, in its current implementations 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.

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 bugzilla:477.

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).

See also[edit]