mac: Make focus back to browser window when devtools is closed.

This commit is contained in:
Cheng Zhao 2014-07-02 16:37:05 +08:00
parent 2efeaa268f
commit 7a2dc3fc4f

View file

@ -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();
}
}
}