mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
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:
parent
d8a1f418ba
commit
01b3b45470
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user