mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +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
dc20b477fa
commit
453b10c143
@ -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