mirror of
https://github.com/electron/electron.git
synced 2026-01-28 08:48:14 -05:00
mac: Make focus back to browser window when devtools is closed.
This commit is contained in:
@@ -62,10 +62,12 @@ using namespace brightray;
|
||||
[self adjustSubviews];
|
||||
}
|
||||
} else {
|
||||
if (visible)
|
||||
if (visible) {
|
||||
[devtools_window_ makeKeyAndOrderFront:nil];
|
||||
else
|
||||
} else {
|
||||
[[self window] makeKeyAndOrderFront:nil];
|
||||
devtools_window_.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user