<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[19427] trunk/wp-includes: Allow access to any admin bar menu level by tabbing.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/19427">19427</a></dd>
<dt>Author</dt> <dd>koopersmith</dd>
<dt>Date</dt> <dd>2011-11-23 21:29:33 +0000 (Wed, 23 Nov 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Allow access to any admin bar menu level by tabbing. fixes <a href="http://core.trac.wordpress.org/ticket/19088">#19088</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsadminbardevjs">trunk/wp-includes/js/admin-bar.dev.js</a></li>
<li><a href="#trunkwpincludesjsadminbarjs">trunk/wp-includes/js/admin-bar.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsadminbardevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/admin-bar.dev.js (19426 => 19427)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/admin-bar.dev.js        2011-11-23 21:17:20 UTC (rev 19426)
+++ trunk/wp-includes/js/admin-bar.dev.js        2011-11-23 21:29:33 UTC (rev 19427)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx">                         }).focus().select();
</span><span class="cx">                 });
</span><span class="cx"> 
</span><del>-                $('.ab-top-menu &gt; li &gt; .ab-item').bind('focus.adminbar', function(){
</del><ins>+                $('#wpadminbar ul &gt; li &gt; .ab-item').bind('focus.adminbar', function(){
</ins><span class="cx">                         $(this).parent().addClass('hover').find('.ab-item').each(function(i, el){
</span><span class="cx">                                 var node = $(el), tab = node.attr('tabindex');
</span><span class="cx">                                 if ( tab )
</span><span class="lines">@@ -42,9 +42,13 @@
</span><span class="cx">                         var top = $(this).parents('li.menupop');
</span><span class="cx"> 
</span><span class="cx">                         setTimeout(function(){
</span><del>-                                if ( !top.find('.ab-item:focus').length )
-                                        top.removeClass('hover');
-                        }, 150);
</del><ins>+                                top.each( function() {
+                                        var t = $(this);
+
+                                        if ( ! t.find('.ab-item:focus').length )
+                                                t.removeClass('hover');
+                                });
+                        }, 100);
</ins><span class="cx">                 });
</span><span class="cx"> 
</span><span class="cx">         });
</span></span></pre></div>
<a id="trunkwpincludesjsadminbarjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/admin-bar.js (19426 => 19427)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/admin-bar.js        2011-11-23 21:17:20 UTC (rev 19426)
+++ trunk/wp-includes/js/admin-bar.js        2011-11-23 21:29:33 UTC (rev 19427)
</span><span class="lines">@@ -1 +1 @@
</span><del>-if(typeof(jQuery)!=&quot;undefined&quot;){if(typeof(jQuery.fn.hoverIntent)==&quot;undefined&quot;){(function(b){b.fn.hoverIntent=function(p,r){var g={sensitivity:7,interval:100,timeout:0};g=b.extend(g,r?{over:p,out:r}:p);var a,f,t,v;var u=function(c){a=c.pageX;f=c.pageY};var w=function(c,d){d.hoverIntent_t=clearTimeout(d.hoverIntent_t);if((Math.abs(t-a)+Math.abs(v-f))&lt;g.sensitivity){b(d).unbind(&quot;mousemove&quot;,u);d.hoverIntent_s=1;return g.over.apply(d,[c])}else{t=a;v=f;d.hoverIntent_t=setTimeout(function(){w(c,d)},g.interval)}};var s=function(c,d){d.hoverIntent_t=clearTimeout(d.hoverIntent_t);d.hoverIntent_s=0;return g.out.apply(d,[c])};var x=function(e){var d=this;var c=(e.type==&quot;mouseover&quot;?e.fromElement:e.toElement)||e.relatedTarget;while(c&amp;&amp;c!=this){try{c=c.parentNode}catch(e){c=this}}if(c==this){if(b.browser.mozilla){if(e.type==&quot;mouseout&quot;){d.mtout=setTimeout(function(){q(e,d)},30)}else{if(d.mtout){d.mtout=clearTimeout(d.m
 tout)}}}return}else{if(d.mtout){d.mtout=clearTimeout(d.mtout)}q(e,d)}};var q=function(e,d){var c=jQuery.extend({},e);if(d.hoverIntent_t){d.hoverIntent_t=clearTimeout(d.hoverIntent_t)}if(e.type==&quot;mouseover&quot;){t=c.pageX;v=c.pageY;b(d).bind(&quot;mousemove&quot;,u);if(d.hoverIntent_s!=1){d.hoverIntent_t=setTimeout(function(){w(c,d)},g.interval)}}else{b(d).unbind(&quot;mousemove&quot;,u);if(d.hoverIntent_s==1){d.hoverIntent_t=setTimeout(function(){s(c,d)},g.timeout)}}};return this.mouseover(x).mouseout(x)}})(jQuery)}jQuery(document).ready(function(a){a(&quot;#wpadminbar&quot;).removeClass(&quot;nojq&quot;).removeClass(&quot;nojs&quot;).find(&quot;li.menupop&quot;).hoverIntent({over:function(b){a(this).addClass(&quot;hover&quot;)},out:function(b){a(this).removeClass(&quot;hover&quot;)},timeout:180,sensitivity:7,interval:100});a(&quot;#wp-admin-bar-get-shortlink&quot;).click(function(b){b.preventDefault();a(this).addClass(&quot;selected&quot;).children(&quot;.shortlink-in
 put&quot;).blur(function(){a(this).parents(&quot;#wp-admin-bar-get-shortlink&quot;).removeClass(&quot;selected&quot;)}).focus().select()});a(&quot;.ab-top-menu &gt; li &gt; .ab-item&quot;).bind(&quot;focus.adminbar&quot;,function(){a(this).parent().addClass(&quot;hover&quot;).find(&quot;.ab-item&quot;).each(function(b,d){var e=a(d),c=e.attr(&quot;tabindex&quot;);if(c){e.attr(&quot;tabindex&quot;,&quot;0&quot;).attr(&quot;tabindex&quot;,c)}})}).bind(&quot;blur.adminbar&quot;,function(){var b=a(this);setTimeout(function(){if(!b.siblings(&quot;div&quot;).find(&quot;.ab-item:focus&quot;).length){b.parent().removeClass(&quot;hover&quot;)}},200)});a(&quot;.ab-top-menu li ul li .ab-item&quot;).bind(&quot;blur.adminbar&quot;,function(){var b=a(this).parents(&quot;li.menupop&quot;);setTimeout(function(){if(!b.find(&quot;.ab-item:focus&quot;).length){b.removeClass(&quot;hover&quot;)}},150)})})}else{(function(i,k){var c=function(n,m,d){if(n.addEventListener){n.addEventListener(m,d,fals
 e)}else{if(n.attachEvent){n.attachEvent(&quot;on&quot;+m,function(){return d.call(n,window.event)})}}},e,f=new RegExp(&quot;\\bhover\\b&quot;,&quot;g&quot;),a=[],j=new RegExp(&quot;\\bselected\\b&quot;,&quot;g&quot;),g=function(m){var d=a.length;while(d--){if(a[d]&amp;&amp;m==a[d][1]){return a[d][0]}}return false},h=function(s){var n,d,q,m,p,r,u=[],o=0;while(s&amp;&amp;s!=e&amp;&amp;s!=i){if(&quot;LI&quot;==s.nodeName.toUpperCase()){u[u.length]=s;d=g(s);if(d){clearTimeout(d)}s.className=s.className?(s.className.replace(f,&quot;&quot;)+&quot; hover&quot;):&quot;hover&quot;;m=s}s=s.parentNode}if(m&amp;&amp;m.parentNode){p=m.parentNode;if(p&amp;&amp;&quot;UL&quot;==p.nodeName.toUpperCase()){n=p.childNodes.length;while(n--){r=p.childNodes[n];if(r!=m){r.className=r.className?r.className.replace(j,&quot;&quot;):&quot;&quot;}}}}n=a.length;while(n--){q=false;o=u.length;while(o--){if(u[o]==a[n][1]){q=true}}if(!q){a[n][1].className=a[n][1].className?a[n][1].className.replace(f,&quot;&
 quot;):&quot;&quot;}}},l=function(d){while(d&amp;&amp;d!=e&amp;&amp;d!=i){if(&quot;LI&quot;==d.nodeName.toUpperCase()){(function(m){var n=setTimeout(function(){m.className=m.className?m.className.replace(f,&quot;&quot;):&quot;&quot;},500);a[a.length]=[n,m]})(d)}d=d.parentNode}},b=function(p){var n,d,o,m=p.target||p.srcElement;while(true){if(!m||m==i||m==e){return}if(m.id&amp;&amp;m.id==&quot;wp-admin-bar-get-shortlink&quot;){break}m=m.parentNode}if(p.preventDefault){p.preventDefault()}p.returnValue=false;if(-1==m.className.indexOf(&quot;selected&quot;)){m.className+=&quot; selected&quot;}for(n=0,d=m.childNodes.length;n&lt;d;n++){o=m.childNodes[n];if(o.className&amp;&amp;-1!=o.className.indexOf(&quot;shortlink-input&quot;)){o.focus();o.select();o.onblur=function(){m.className=m.className?m.className.replace(j,&quot;&quot;):&quot;&quot;};break}}return false};c(k,&quot;load&quot;,function(){e=i.getElementById(&quot;wpadminbar&quot;);if(i.body&amp;&amp;e){i.body.appendChild(e);i
 f(e.className){e.className=e.className.replace(/nojs/,&quot;&quot;)}c(e,&quot;mouseover&quot;,function(d){h(d.target||d.srcElement)});c(e,&quot;mouseout&quot;,function(d){l(d.target||d.srcElement)});c(e,&quot;click&quot;,b)}if(k.location.hash){k.scrollBy(0,-32)}})})(document,window)};
</del><span class="cx">\ No newline at end of file
</span><ins>+if(typeof(jQuery)!=&quot;undefined&quot;){if(typeof(jQuery.fn.hoverIntent)==&quot;undefined&quot;){(function(b){b.fn.hoverIntent=function(p,r){var g={sensitivity:7,interval:100,timeout:0};g=b.extend(g,r?{over:p,out:r}:p);var a,f,t,v;var u=function(c){a=c.pageX;f=c.pageY};var w=function(c,d){d.hoverIntent_t=clearTimeout(d.hoverIntent_t);if((Math.abs(t-a)+Math.abs(v-f))&lt;g.sensitivity){b(d).unbind(&quot;mousemove&quot;,u);d.hoverIntent_s=1;return g.over.apply(d,[c])}else{t=a;v=f;d.hoverIntent_t=setTimeout(function(){w(c,d)},g.interval)}};var s=function(c,d){d.hoverIntent_t=clearTimeout(d.hoverIntent_t);d.hoverIntent_s=0;return g.out.apply(d,[c])};var x=function(e){var d=this;var c=(e.type==&quot;mouseover&quot;?e.fromElement:e.toElement)||e.relatedTarget;while(c&amp;&amp;c!=this){try{c=c.parentNode}catch(e){c=this}}if(c==this){if(b.browser.mozilla){if(e.type==&quot;mouseout&quot;){d.mtout=setTimeout(function(){q(e,d)},30)}else{if(d.mtout){d.mtout=clearTimeout(d.m
 tout)}}}return}else{if(d.mtout){d.mtout=clearTimeout(d.mtout)}q(e,d)}};var q=function(e,d){var c=jQuery.extend({},e);if(d.hoverIntent_t){d.hoverIntent_t=clearTimeout(d.hoverIntent_t)}if(e.type==&quot;mouseover&quot;){t=c.pageX;v=c.pageY;b(d).bind(&quot;mousemove&quot;,u);if(d.hoverIntent_s!=1){d.hoverIntent_t=setTimeout(function(){w(c,d)},g.interval)}}else{b(d).unbind(&quot;mousemove&quot;,u);if(d.hoverIntent_s==1){d.hoverIntent_t=setTimeout(function(){s(c,d)},g.timeout)}}};return this.mouseover(x).mouseout(x)}})(jQuery)}jQuery(document).ready(function(a){a(&quot;#wpadminbar&quot;).removeClass(&quot;nojq&quot;).removeClass(&quot;nojs&quot;).find(&quot;li.menupop&quot;).hoverIntent({over:function(b){a(this).addClass(&quot;hover&quot;)},out:function(b){a(this).removeClass(&quot;hover&quot;)},timeout:180,sensitivity:7,interval:100});a(&quot;#wp-admin-bar-get-shortlink&quot;).click(function(b){b.preventDefault();a(this).addClass(&quot;selected&quot;).children(&quot;.shortlink-in
 put&quot;).blur(function(){a(this).parents(&quot;#wp-admin-bar-get-shortlink&quot;).removeClass(&quot;selected&quot;)}).focus().select()});a(&quot;#wpadminbar ul &gt; li &gt; .ab-item&quot;).bind(&quot;focus.adminbar&quot;,function(){a(this).parent().addClass(&quot;hover&quot;).find(&quot;.ab-item&quot;).each(function(b,d){var e=a(d),c=e.attr(&quot;tabindex&quot;);if(c){e.attr(&quot;tabindex&quot;,&quot;0&quot;).attr(&quot;tabindex&quot;,c)}})}).bind(&quot;blur.adminbar&quot;,function(){var b=a(this);setTimeout(function(){if(!b.siblings(&quot;div&quot;).find(&quot;.ab-item:focus&quot;).length){b.parent().removeClass(&quot;hover&quot;)}},200)});a(&quot;.ab-top-menu li ul li .ab-item&quot;).bind(&quot;blur.adminbar&quot;,function(){var b=a(this).parents(&quot;li.menupop&quot;);setTimeout(function(){b.each(function(){var c=a(this);if(!c.find(&quot;.ab-item:focus&quot;).length){c.removeClass(&quot;hover&quot;)}})},100)})})}else{(function(i,k){var c=function(n,m,d){if(n.addEventL
 istener){n.addEventListener(m,d,false)}else{if(n.attachEvent){n.attachEvent(&quot;on&quot;+m,function(){return d.call(n,window.event)})}}},e,f=new RegExp(&quot;\\bhover\\b&quot;,&quot;g&quot;),a=[],j=new RegExp(&quot;\\bselected\\b&quot;,&quot;g&quot;),g=function(m){var d=a.length;while(d--){if(a[d]&amp;&amp;m==a[d][1]){return a[d][0]}}return false},h=function(s){var n,d,q,m,p,r,u=[],o=0;while(s&amp;&amp;s!=e&amp;&amp;s!=i){if(&quot;LI&quot;==s.nodeName.toUpperCase()){u[u.length]=s;d=g(s);if(d){clearTimeout(d)}s.className=s.className?(s.className.replace(f,&quot;&quot;)+&quot; hover&quot;):&quot;hover&quot;;m=s}s=s.parentNode}if(m&amp;&amp;m.parentNode){p=m.parentNode;if(p&amp;&amp;&quot;UL&quot;==p.nodeName.toUpperCase()){n=p.childNodes.length;while(n--){r=p.childNodes[n];if(r!=m){r.className=r.className?r.className.replace(j,&quot;&quot;):&quot;&quot;}}}}n=a.length;while(n--){q=false;o=u.length;while(o--){if(u[o]==a[n][1]){q=true}}if(!q){a[n][1].className=a[n][1].className
 ?a[n][1].className.replace(f,&quot;&quot;):&quot;&quot;}}},l=function(d){while(d&amp;&amp;d!=e&amp;&amp;d!=i){if(&quot;LI&quot;==d.nodeName.toUpperCase()){(function(m){var n=setTimeout(function(){m.className=m.className?m.className.replace(f,&quot;&quot;):&quot;&quot;},500);a[a.length]=[n,m]})(d)}d=d.parentNode}},b=function(p){var n,d,o,m=p.target||p.srcElement;while(true){if(!m||m==i||m==e){return}if(m.id&amp;&amp;m.id==&quot;wp-admin-bar-get-shortlink&quot;){break}m=m.parentNode}if(p.preventDefault){p.preventDefault()}p.returnValue=false;if(-1==m.className.indexOf(&quot;selected&quot;)){m.className+=&quot; selected&quot;}for(n=0,d=m.childNodes.length;n&lt;d;n++){o=m.childNodes[n];if(o.className&amp;&amp;-1!=o.className.indexOf(&quot;shortlink-input&quot;)){o.focus();o.select();o.onblur=function(){m.className=m.className?m.className.replace(j,&quot;&quot;):&quot;&quot;};break}}return false};c(k,&quot;load&quot;,function(){e=i.getElementById(&quot;wpadminbar&quot;);if(i.body
 &amp;&amp;e){i.body.appendChild(e);if(e.className){e.className=e.className.replace(/nojs/,&quot;&quot;)}c(e,&quot;mouseover&quot;,function(d){h(d.target||d.srcElement)});c(e,&quot;mouseout&quot;,function(d){l(d.target||d.srcElement)});c(e,&quot;click&quot;,b)}if(k.location.hash){k.scrollBy(0,-32)}})})(document,window)};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (19426 => 19427)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-11-23 21:17:20 UTC (rev 19426)
+++ trunk/wp-includes/script-loader.php        2011-11-23 21:29:33 UTC (rev 19427)
</span><span class="lines">@@ -260,7 +260,7 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'user-profile', &quot;/wp-admin/js/user-profile$suffix.js&quot;, array( 'jquery', 'password-strength-meter' ), '20110628', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'admin-bar', &quot;/wp-includes/js/admin-bar$suffix.js&quot;, false, '20111117', 1 );
</del><ins>+        $scripts-&gt;add( 'admin-bar', &quot;/wp-includes/js/admin-bar$suffix.js&quot;, false, '20111123', 1 );
</ins><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'wplink', &quot;/wp-includes/js/wplink$suffix.js&quot;, array( 'jquery', 'wpdialogs' ), '20110929', 1 );
</span><span class="cx">         $scripts-&gt;localize( 'wplink', 'wpLinkL10n', array(
</span></span></pre>
</div>
</div>

</body>
</html>