Add app.focus API.
This commit is contained in:
parent
4133fc28d9
commit
9ea1f9956e
4 changed files with 18 additions and 0 deletions
|
@ -12,4 +12,8 @@ void Browser::Terminate() {
|
|||
[[AtomApplication sharedApplication] terminate:nil];
|
||||
}
|
||||
|
||||
void Browser::Focus() {
|
||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue