Add BrowserWindow.getFocusedWindow() API.
This commit is contained in:
parent
5c3857790c
commit
394bf0a8d9
2 changed files with 7 additions and 0 deletions
|
@ -69,10 +69,12 @@ delegate.browserMainParts.preMainMessageLoopRun = function() {
|
|||
{
|
||||
label: 'Reload',
|
||||
accelerator: 'Command+R',
|
||||
click: function() { BrowserWindow.getFocusedWindow().reloadIgnoringCache(); }
|
||||
},
|
||||
{
|
||||
label: 'Show DevTools',
|
||||
accelerator: 'Alt+Command+I',
|
||||
click: function() { BrowserWindow.getFocusedWindow().openDevTools(); }
|
||||
},
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue