mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Fix to the menu. When menu shows up, remove the focus from the toolbar item.
This commit is contained in:
parent
25a276305a
commit
02c5bbeda2
@ -1310,8 +1310,16 @@ function BrowserMenuSpin() {
|
||||
}
|
||||
|
||||
function MenuEnableEscapeKeys() {
|
||||
|
||||
// we remove the focus from the toolbar button to avoid a command_action (keyboard event) to
|
||||
// call the menu again.
|
||||
|
||||
document.getElementById("menu_MainPopup").focus();
|
||||
|
||||
// When popups are on, <key /> not working...bugs like https://bugzilla.mozilla.org/show_bug.cgi?id=55495
|
||||
|
||||
document.addEventListener("keypress",MenuHandleMenuEscape,true);
|
||||
|
||||
}
|
||||
|
||||
function MenuDisableEscapeKeys() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user