CINXE.COM
Ui.key.contentAccess - MozillaZine Knowledge Base
<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head> <meta charset="UTF-8"/> <title>Ui.key.contentAccess - MozillaZine Knowledge Base</title> <script>document.documentElement.className="client-js";RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"6c5deca61806d7c453da5700","wgCSPNonce":false,"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Ui.key.contentAccess","wgTitle":"Ui.key.contentAccess","wgCurRevisionId":47170,"wgRevisionId":47170,"wgArticleId":4604,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Preferences"],"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Ui.key.contentAccess","wgRelevantArticleId":4604,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[]};RLSTATE={"site.styles":"ready","user.styles" :"ready","user":"ready","user.options":"loading","skins.monobook.styles":"ready"};RLPAGEMODULES=["site","mediawiki.page.ready","mediawiki.toc","skins.monobook.scripts"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.implement("user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});});});</script> <link rel="stylesheet" href="/load.php?lang=en&modules=skins.monobook.styles&only=styles&skin=monobook"/> <script async="" src="/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=monobook"></script> <meta name="generator" content="MediaWiki 1.40.1"/> <meta name="robots" content="max-image-preview:standard"/> <meta name="format-detection" content="telephone=no"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0"/> <link rel="icon" href="/favicon.ico"/> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="MozillaZine Knowledge Base (en)"/> <link rel="EditURI" type="application/rsd+xml" href="//kb.mozillazine.org/api.php?action=rsd"/> <link rel="alternate" type="application/atom+xml" title="MozillaZine Knowledge Base Atom feed" href="/index.php?title=Special:RecentChanges&feed=atom"/> </head> <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Ui_key_contentAccess rootpage-Ui_key_contentAccess skin-monobook action-view skin--responsive"><div id="globalWrapper"> <div id="column-content"> <div id="content" class="mw-body" role="main"> <a id="top"></a> <div id="siteNotice"></div> <div class="mw-indicators"> </div> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Ui.key.contentAccess</span></h1> <div id="bodyContent" class="monobook-body"> <div id="siteSub">From MozillaZine Knowledge Base</div> <div id="contentSub" ><div id="mw-content-subtitle"></div></div> <div id="jump-to-nav"></div><a href="#column-one" class="mw-jump-link">Jump to navigation</a><a href="#searchInput" class="mw-jump-link">Jump to search</a> <!-- start content --> <div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-parser-output"><div class="boilerplate metadata" id="preference" style="background: #F7FFFC; margin: .5em 2.5%; padding: 1em; border: 1px solid #B8CCC5">The title given to this article is incorrect due to <a href="http://www.wikipedia.org/wiki/Wikipedia:Naming_conventions_(technical_restrictions)" class="extiw" title="wikipedia:Wikipedia:Naming conventions (technical restrictions)">technical limitations</a>. The correct title is <b>ui.key.contentAccess</b>.<br /><br /> This article describes the preference <b>ui.key.contentAccess</b>. To add, delete, or modify this preference, you will need to <a href="/Editing_configuration" title="Editing configuration">edit your configuration</a> — do <i>not</i> edit this article.</div> <div id="toc" class="toc" role="navigation" aria-labelledby="mw-toc-heading"><input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none" /><div class="toctitle" lang="en" dir="ltr"><h2 id="mw-toc-heading">Contents</h2><span class="toctogglespan"><label class="toctogglelabel" for="toctogglecheckbox"></label></span></div> <ul> <li class="toclevel-1 tocsection-1"><a href="#Background"><span class="tocnumber">1</span> <span class="toctext">Background</span></a></li> <li class="toclevel-1 tocsection-2"><a href="#Possible_values_and_their_effects"><span class="tocnumber">2</span> <span class="toctext">Possible values and their effects</span></a> <ul> <li class="toclevel-2 tocsection-3"><a href="#0_2"><span class="tocnumber">2.1</span> <span class="toctext">0</span></a></li> <li class="toclevel-2 tocsection-4"><a href="#1"><span class="tocnumber">2.2</span> <span class="toctext">1</span></a></li> <li class="toclevel-2 tocsection-5"><a href="#2"><span class="tocnumber">2.3</span> <span class="toctext">2</span></a></li> <li class="toclevel-2 tocsection-6"><a href="#4"><span class="tocnumber">2.4</span> <span class="toctext">4</span></a></li> <li class="toclevel-2 tocsection-7"><a href="#8"><span class="tocnumber">2.5</span> <span class="toctext">8</span></a></li> <li class="toclevel-2 tocsection-8"><a href="#(Other)"><span class="tocnumber">2.6</span> <span class="toctext">(Other)</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-9"><a href="#Caveats"><span class="tocnumber">3</span> <span class="toctext">Caveats</span></a></li> <li class="toclevel-1 tocsection-10"><a href="#Recommended_settings"><span class="tocnumber">4</span> <span class="toctext">Recommended settings</span></a></li> <li class="toclevel-1 tocsection-11"><a href="#First_checked_in"><span class="tocnumber">5</span> <span class="toctext">First checked in</span></a></li> <li class="toclevel-1 tocsection-12"><a href="#Has_an_effect_in"><span class="tocnumber">6</span> <span class="toctext">Has an effect in</span></a></li> <li class="toclevel-1 tocsection-13"><a href="#Related_bugs"><span class="tocnumber">7</span> <span class="toctext">Related bugs</span></a></li> <li class="toclevel-1 tocsection-14"><a href="#Related_preferences"><span class="tocnumber">8</span> <span class="toctext">Related preferences</span></a></li> </ul> </div> <h2><span class="mw-headline" id="Background">Background</span></h2> <p>The HTML 4.01 specification defines the <code><a rel="nofollow" class="external text" href="http://www.w3.org/TR/html401/interact/forms.html#h-17.11.2">accesskey</a></code> attribute for certain HTML elements (links, image maps, and some form controls). This allows the user to <a href="/Accessibility.accesskeycausesactivation" title="Accessibility.accesskeycausesactivation">focus or activate</a> the element. However, these shortcuts defined in web pages can conflict with Mozilla鈥檚 shortcuts. To avoid this problem, the access key used for web page content can be specified separately from the chrome. This preference determines which access key is used for web content displayed in Mozilla. </p> <h2><span class="mw-headline" id="Possible_values_and_their_effects">Possible values and their effects</span></h2> <h3><span class="mw-headline" id="0_2">0</span></h3> <p>Disable the accelerator key for the content. </p> <h3><span class="mw-headline" id="1">1</span></h3> <p>Use "Shift" for the content access key. </p> <h3><span class="mw-headline" id="2">2</span></h3> <p>Use "Ctrl" for the content access key. </p> <h3><span class="mw-headline" id="4">4</span></h3> <p>Use "Alt" (Option on the Mac) for the content access key. </p> <h3><span class="mw-headline" id="8">8</span></h3> <p>Use "Meta" (Command on the Mac) for the content access key. </p> <h3><span id=".28Other.29"></span><span class="mw-headline" id="(Other)">(Other)</span></h3> <p>You can add any of the above values together to combine their functionality. That is, setting this preference to 3 (i.e., 1 + 2) means you need to press "Shift+Ctrl". In Windows and Linux, the default is 5 ("Shift+Alt"). On macOS, the default is 6 (Control+Option). </p> <h2><span class="mw-headline" id="Caveats">Caveats</span></h2> <ul><li><a href="/Ui.key.generalAccessKey" title="Ui.key.generalAccessKey">ui.key.generalAccessKey</a> must be -1 for this preference to have an effect.</li></ul> <h2><span class="mw-headline" id="Recommended_settings">Recommended settings</span></h2> <p>It鈥檚 a good idea to keep this preference set to a different value than <a href="/Ui.key.chromeAccess" title="Ui.key.chromeAccess">ui.key.chromeAccess</a> for the reasons mentioned above. </p> <h2><span class="mw-headline" id="First_checked_in">First checked in</span></h2> <p><a rel="nofollow" class="external text" href="http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&file=nsEventStateManager.cpp&branch=&root=/cvsroot&subdir=mozilla/content/events/src&command=DIFF_FRAMESET&rev1=1.659&rev2=1.660">2006-07-13 by Gavin Sharp</a> </p> <h2><span class="mw-headline" id="Has_an_effect_in">Has an effect in</span></h2> <ul><li>Mozilla Firefox (nightly trunk builds since 2006-07-13)</li> <li>SeaMonkey (nightly builds since 2006-07-13)</li></ul> <h2><span class="mw-headline" id="Related_bugs">Related bugs</span></h2> <ul><li><a rel="nofollow" class="external text" href="https://bugzilla.mozilla.org/show_bug.cgi?id=128452">Bug 128452 - in-page accesskeys conflict w/UI accelerators when accelkey is ALT</a></li> <li><a rel="nofollow" class="external text" href="https://bugzilla.mozilla.org/show_bug.cgi?id=179816">Bug 179816 - support shift- as html accesskey</a></li> <li><a rel="nofollow" class="external text" href="https://bugzilla.mozilla.org/show_bug.cgi?id=207510">Bug 207510 - Use command, rather than control, as accesskey accelerator in chrome on Mac</a></li> <li><a rel="nofollow" class="external text" href="https://bugzilla.mozilla.org/show_bug.cgi?id=340902">Bug 340902 - Split ui.key.generalAccessKey into prefs for content and chrome</a></li></ul> <h2><span class="mw-headline" id="Related_preferences">Related preferences</span></h2> <ul><li><a href="/Accessibility.accesskeycausesactivation" title="Accessibility.accesskeycausesactivation">accessibility.accesskeycausesactivation</a></li> <li><a href="/Ui.key.chromeAccess" title="Ui.key.chromeAccess">ui.key.chromeAccess</a></li> <li><a href="/Ui.key.generalAccessKey" title="Ui.key.generalAccessKey">ui.key.generalAccessKey</a></li></ul> <!-- NewPP limit report Cached time: 20250302075402 Cache expiry: 86400 Reduced expiry: false Complications: [show鈥恡oc, no鈥恡oc鈥恈onversion] CPU time usage: 0.024 seconds Real time usage: 0.027 seconds Preprocessor visited node count: 55/1000000 Post鈥恊xpand include size: 562/2097152 bytes Template argument size: 40/2097152 bytes Highest expansion depth: 3/100 Expensive parser function count: 0/100 Unstrip recursion depth: 0/20 Unstrip post鈥恊xpand size: 0/5000000 bytes --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 4.765 1 Template:Preference 100.00% 4.765 1 -total --> <!-- Saved in parser cache with key mozine_wiki:pcache:idhash:4604-0!canonical and timestamp 20250302075402 and revision id 47170. Rendering was triggered because: page-view --> </div> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="http://kb.mozillazine.org/index.php?title=Ui.key.contentAccess&oldid=47170">http://kb.mozillazine.org/index.php?title=Ui.key.contentAccess&oldid=47170</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="/Category:Preferences" title="Category:Preferences">Preferences</a></li></ul></div></div> <!-- end content --> <div class="visualClear"></div> </div> </div> <div class="visualClear"></div> </div> <div id="column-one" > <h2>Navigation menu</h2> <div role="navigation" class="portlet" id="p-cactions" aria-labelledby="p-cactions-label"> <h3 id="p-cactions-label" >Page actions</h3> <div class="pBody"> <ul > <li id="ca-nstab-main" class="selected mw-list-item"><a href="/Ui.key.contentAccess" title="View the content page [c]" accesskey="c">Page</a></li><li id="ca-talk" class="new mw-list-item"><a href="/index.php?title=Talk:Ui.key.contentAccess&action=edit&redlink=1" rel="discussion" title="Discussion about the content page (page does not exist) [t]" accesskey="t">Discussion</a></li><li id="ca-view" class="selected mw-list-item"><a href="/Ui.key.contentAccess">Read</a></li><li id="ca-viewsource" class="mw-list-item"><a href="/index.php?title=Ui.key.contentAccess&action=edit" title="This page is protected. You can view its source [e]" accesskey="e">View source</a></li><li id="ca-history" class="mw-list-item"><a href="/index.php?title=Ui.key.contentAccess&action=history" title="Past revisions of this page [h]" accesskey="h">History</a></li> </ul> </div> </div> <div role="navigation" class="portlet mw-portlet mw-portlet-cactions-mobile" id="p-cactions-mobile" aria-labelledby="p-cactions-mobile-label"> <h3 id="p-cactions-mobile-label" >Page actions</h3> <div class="pBody"> <ul ><li id="main-mobile" class="selected mw-list-item"><a href="/Ui.key.contentAccess" title="Page">Page</a></li><li id="talk-mobile" class="new mw-list-item"><a href="/index.php?title=Talk:Ui.key.contentAccess&action=edit&redlink=1" title=" (page does not exist)">Discussion</a></li><li id="ca-more" class="mw-list-item"><a href="#p-cactions">More</a></li><li id="ca-tools" class="mw-list-item"><a href="#p-tb" title="Tools">Tools</a></li></ul> </div> </div> <div role="navigation" class="portlet" id="p-personal" aria-labelledby="p-personal-label"> <h3 id="p-personal-label" >Personal tools</h3> <div class="pBody"> <ul > <li id="pt-login" class="mw-list-item"><a href="/index.php?title=Special:UserLogin&returnto=Ui.key.contentAccess" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li> </ul> </div> </div> <div class="portlet" id="p-logo" role="banner"> <a href="/Knowledge_Base" class="mw-wiki-logo"></a> </div> <div id="sidebar"> <div role="navigation" class="portlet mw-portlet mw-portlet-navigation" id="p-navigation" aria-labelledby="p-navigation-label"> <h3 id="p-navigation-label" >Navigation</h3> <div class="pBody"> <ul ><li id="n-mainpage-description" class="mw-list-item"><a href="/Knowledge_Base" title="Visit the main page [z]" accesskey="z">Main page</a></li><li id="n-recentchanges" class="mw-list-item"><a href="/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li><li id="n-randompage" class="mw-list-item"><a href="/Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li><li id="n-help-mediawiki" class="mw-list-item"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents">Help about MediaWiki</a></li></ul> </div> </div> <div role="search" class="portlet" id="p-search"> <h3 id="p-search-label" ><label for="searchInput">Search</label></h3> <div class="pBody" id="searchBody"> <form action="/index.php" id="searchform"><input type="hidden" value="Special:Search" name="title"><input type="search" name="search" placeholder="Search MozillaZine Knowledge Base" aria-label="Search MozillaZine Knowledge Base" autocapitalize="sentences" title="Search MozillaZine Knowledge Base [f]" accesskey="f" id="searchInput"/><input type="submit" name="go" value="Go" title="Go to a page with this exact name if it exists" class="searchButton" id="searchButton"/> <input type="submit" name="fulltext" value="Search" title="Search the pages for this text" class="searchButton mw-fallbackSearchButton" id="mw-searchButton"/></form> </div> </div> <div role="navigation" class="portlet mw-portlet mw-portlet-tb" id="p-tb" aria-labelledby="p-tb-label"> <h3 id="p-tb-label" >Tools</h3> <div class="pBody"> <ul ><li id="t-whatlinkshere" class="mw-list-item"><a href="/Special:WhatLinksHere/Ui.key.contentAccess" title="A list of all wiki pages that link here [j]" accesskey="j">What links here</a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/Special:RecentChangesLinked/Ui.key.contentAccess" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li><li id="t-specialpages" class="mw-list-item"><a href="/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q">Special pages</a></li><li id="t-print" class="mw-list-item"><a href="javascript:print();" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li><li id="t-permalink" class="mw-list-item"><a href="/index.php?title=Ui.key.contentAccess&oldid=47170" title="Permanent link to this revision of this page">Permanent link</a></li><li id="t-info" class="mw-list-item"><a href="/index.php?title=Ui.key.contentAccess&action=info" title="More information about this page">Page information</a></li></ul> </div> </div> </div> <a href="#sidebar" title="Jump to navigation" class="menu-toggle" id="sidebar-toggle"></a> <a href="#p-personal" title="user tools" class="menu-toggle" id="p-personal-toggle"></a> <a href="#globalWrapper" title="back to top" class="menu-toggle" id="globalWrapper-toggle"></a> </div> <!-- end of the left (by default at least) column --> <div class="visualClear"></div> <div id="footer" class="mw-footer" role="contentinfo" > <div id="f-poweredbyico" class="footer-icons"> <a href="https://www.mediawiki.org/"><img src="/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31" loading="lazy"/></a> </div> <ul id="f-list"> <li id="lastmod"> This page was last edited on 6 April 2017, at 06:46.</li> <li id="privacy"><a href="/MozillaZine_Knowledge_Base:Privacy_policy">Privacy policy</a></li><li id="about"><a href="/MozillaZine_Knowledge_Base:About">About MozillaZine Knowledge Base</a></li><li id="disclaimers"><a href="/MozillaZine_Knowledge_Base:General_disclaimer">Disclaimers</a></li> </ul> </div> </div> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":156,"wgPageParseReport":{"limitreport":{"cputime":"0.024","walltime":"0.027","ppvisitednodes":{"value":55,"limit":1000000},"postexpandincludesize":{"value":562,"limit":2097152},"templateargumentsize":{"value":40,"limit":2097152},"expansiondepth":{"value":3,"limit":100},"expensivefunctioncount":{"value":0,"limit":100},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":0,"limit":5000000},"timingprofile":["100.00% 4.765 1 Template:Preference","100.00% 4.765 1 -total"]},"cachereport":{"timestamp":"20250302075402","ttl":86400,"transientcontent":false}}});});</script> </body> </html>