ev.returnValue = false;
return false;
}
- window.location = e.href;
+ if (_hotkeys.alt) // ommit Chrome accesskeys
+ return false;
+ window.location = e.href;
}
},
'ul.ajaxtabs': function(ul) {
// ? var modifiedurl=ulistlink.getAttribute("href").replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/")
var url = tab.form.action
tab.onclick=function(){
- _expand(this);
+ if (!_hotkeys.alt && !tab.disabled)
+ _expand(this);
return false;
}
}
for (var i=0; i<cnt; i++) {
n = (n+1)%cnt;
// check also if the link is visible
- if (l[n].accessKey==key && l[n].scrollWidth) {
+ if (l[n].accessKey==key && (l[n].offsetWidth || l[n].offsetHeight)) {
_hotkeys.focus = n;
// The timeout is needed to prevent unpredictable behaviour on IE.
var tmp = function() {l[_hotkeys.focus].focus();};