Remove NativeWindow::ActivateContents
This commit is contained in:
parent
eb370ba22a
commit
e41b0d4d2c
5 changed files with 6 additions and 11 deletions
|
@ -20,6 +20,11 @@ BrowserWindow::_init = ->
|
|||
@webContents.on 'move', (event, size) =>
|
||||
@setSize size
|
||||
|
||||
# Hide the auto-hide menu when webContents is focused.
|
||||
@webContents.on 'activate', =>
|
||||
if process.platform isnt 'darwin' and @isMenuBarAutoHide() and @isMenuBarVisible()
|
||||
@setMenuBarVisibility false
|
||||
|
||||
# Redirect focus/blur event to app instance too.
|
||||
@on 'blur', (event) =>
|
||||
app.emit 'browser-window-blur', event, this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue