mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
513 charCode, focus to the top menu.
This commit is contained in:
parent
d34807f08b
commit
33af633bb3
@ -281,8 +281,13 @@ function eventHandlerMenu(e) {
|
||||
//document.getElementById("back-button").focus();
|
||||
}
|
||||
|
||||
if(e.charCode==513) {
|
||||
document.getElementById("menu-button").focus();
|
||||
}
|
||||
|
||||
var outnavTarget=document.commandDispatcher.focusedElement.getAttribute("accessrule");
|
||||
if(outnavTarget!="" && (e.keyCode==40||e.keyCode==38) && !gShowingMenuPopup) {
|
||||
e.preventDefault();
|
||||
if(e.keyCode==40) {
|
||||
ruleElement=findRuleById(document.getElementById(outnavTarget).getAttribute("accessnextrule"),"accessnextrule");
|
||||
}
|
||||
@ -296,7 +301,7 @@ function eventHandlerMenu(e) {
|
||||
}
|
||||
} else {
|
||||
document.getElementById(tempElement).focus();
|
||||
e.preventDefault();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user