diff --git a/public_html/css/top-navigation.css b/public_html/css/top-navigation.css index 0cd6edaa..161d94fd 100644 --- a/public_html/css/top-navigation.css +++ b/public_html/css/top-navigation.css @@ -37,3 +37,18 @@ font-size: 40px; margin: 0 10px 5px; } + +#top-navigation .accesskey:before { + position: absolute; + display: inline-block; + right: 0; + left: 0; + content: '\a0'; + border-bottom: 1px solid; + opacity: .35; + height: 90%; +} +#top-navigation .accesskey { + position: relative; + text-decoration: none; +} diff --git a/public_html/templates/top-navigation.tpl b/public_html/templates/top-navigation.tpl index dc9daef4..33714540 100644 --- a/public_html/templates/top-navigation.tpl +++ b/public_html/templates/top-navigation.tpl @@ -74,10 +74,13 @@ link.className = link.title.toLowerCase(); } if (typeof(link.accessKey) === 'undefined') { - var accessKey = link.title.substring(0, 1); - if (!_.contains(takenAccessKeys, accessKey)) { - link.accessKey = accessKey; - takenAccessKeys.push(accessKey); + for (var i = 0; i < link.title.length; i ++) { + var accessKey = link.title.charAt(i); + if (!_.contains(takenAccessKeys, accessKey)) { + link.accessKey = accessKey; + takenAccessKeys.push(accessKey); + break; + } } } return link; @@ -88,7 +91,8 @@ -->