Add app.focus API.

This commit is contained in:
Cheng Zhao 2013-05-30 19:24:47 +08:00
parent 4133fc28d9
commit 9ea1f9956e
4 changed files with 18 additions and 0 deletions

View file

@ -12,4 +12,8 @@ void Browser::Terminate() {
[[AtomApplication sharedApplication] terminate:nil];
}
void Browser::Focus() {
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
}
} // namespace atom