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:
chanial%noos.fr 2002-11-10 21:58:31 +00:00
Родитель 233808a23b
Коммит 88da520bf7
2 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -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">