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 2001-05-31 01:18:07 +00:00
parent d8a1f418ba
commit 01b3b45470

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',