mirror of
https://github.com/electron/electron.git
synced 2026-01-23 14:28:17 -05:00
mac: BrowserWindow.show() should also focus on window
This commit is contained in:
@@ -386,6 +386,10 @@ bool NativeWindowMac::IsFocused() {
|
||||
}
|
||||
|
||||
void NativeWindowMac::Show() {
|
||||
// This method is supposed to put focus on window, however if the app does not
|
||||
// have focus then "makeKeyAndOrderFront" will only show the window.
|
||||
[NSApp activateIgnoringOtherApps:YES];
|
||||
|
||||
[window_ makeKeyAndOrderFront:nil];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user