зеркало из https://github.com/mozilla/gecko-dev.git
bug 92380: focus the personal toolbar so that commands executed from the context menu are correctly targeted. r=caillon, sr=bz
This commit is contained in:
Родитель
233808a23b
Коммит
88da520bf7
|
@ -472,7 +472,13 @@ BookmarksToolbar.prototype = {
|
||||||
onCommandUpdate: function ()
|
onCommandUpdate: function ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
doFocus: function ()
|
||||||
|
{
|
||||||
|
document.getElementById("PersonalToolbar").focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function BM_navigatorLoad(aEvent)
|
function BM_navigatorLoad(aEvent)
|
||||||
|
|
|
@ -35,8 +35,11 @@
|
||||||
</stringbundleset>
|
</stringbundleset>
|
||||||
|
|
||||||
<popupset id="bookmarksPopupset">
|
<popupset id="bookmarksPopupset">
|
||||||
|
<!-- the toolbar buttons in the personal toolbar have -moz-user-focus:ignore
|
||||||
|
we have to focus them manually -->
|
||||||
<popup id="bmContext"
|
<popup id="bmContext"
|
||||||
onpopupshowing="gBookmarksShell.createContextMenu(event);"/>
|
onpopupshowing="gBookmarksShell.doFocus(); gBookmarksShell.createContextMenu(event);"
|
||||||
|
onpopuphidden="if (content) content.focus()"/>
|
||||||
</popupset>
|
</popupset>
|
||||||
|
|
||||||
<commands id="commands">
|
<commands id="commands">
|
||||||
|
|
Загрузка…
Ссылка в новой задаче