mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: add force option to app.focus() (#22612)
This commit is contained in:
@@ -84,7 +84,7 @@ bool SetDefaultWebClient(const std::string& protocol) {
|
||||
return ran_ok && exit_code == EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
void Browser::Focus() {
|
||||
void Browser::Focus(gin_helper::Arguments* args) {
|
||||
// Focus on the first visible window.
|
||||
for (auto* const window : WindowList::GetWindows()) {
|
||||
if (window->IsVisible()) {
|
||||
|
||||
Reference in New Issue
Block a user