mac: Make focus back to browser window when devtools is closed.
This commit is contained in:
parent
2efeaa268f
commit
7a2dc3fc4f
1 changed files with 4 additions and 2 deletions
|
@ -62,10 +62,12 @@ using namespace brightray;
|
||||||
[self adjustSubviews];
|
[self adjustSubviews];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (visible)
|
if (visible) {
|
||||||
[devtools_window_ makeKeyAndOrderFront:nil];
|
[devtools_window_ makeKeyAndOrderFront:nil];
|
||||||
else
|
} else {
|
||||||
|
[[self window] makeKeyAndOrderFront:nil];
|
||||||
devtools_window_.reset();
|
devtools_window_.reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue