зеркало из https://github.com/mozilla/pjs.git
Enable the keys to launch focus to the general button.
This commit is contained in:
Родитель
2982dcd8d0
Коммит
e7d1ec6b0b
|
@ -143,6 +143,11 @@ function eventHandlerMenu(e) {
|
|||
e.preventBubble();
|
||||
}
|
||||
|
||||
if(e.keyCode==134 || e.keyCode==70) /*SoftKey1 or HWKey1*/ {
|
||||
document.getElementById("general-button").focus();
|
||||
e.preventBubble();
|
||||
}
|
||||
|
||||
var outnavTarget=document.commandDispatcher.focusedElement.getAttribute("accessrule");
|
||||
if(outnavTarget!="" && (e.keyCode==40||e.keyCode==38)) {
|
||||
e.preventBubble();
|
||||
|
|
Загрузка…
Ссылка в новой задаче