mac: BrowserWindow.show() should also focus on window
This commit is contained in:
parent
a23218c51d
commit
ded58b8e65
1 changed files with 4 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue