Fix for bug 74499 -- command keys don't work on Mac when no windows are open. Focussing the hidden window when it's first created fixes this. r=saari, sr=kin, a=asa

This commit is contained in:
sfraser%netscape.com 2006-09-14 05:58:24 +00:00
parent dc20b477fa
commit 453b10c143

View File

@ -1039,6 +1039,9 @@ function BrowserPageInfo(doc)
function hiddenWindowStartup()
{
// focus the hidden window
window.focus();
// Disable menus which are not appropriate
var disabledItems = ['cmd_close', 'Browser:SendPage', 'Browser:EditPage', /*'Browser:PrintSetup', 'Browser:PrintPreview',*/
'Browser:Print', 'canGoBack', 'canGoForward', 'Browser:Home', 'Browser:AddBookmark', 'cmd_undo',