diff --git a/js/ui/overview.js b/js/ui/overview.js index 12785adc8..d49f51a4a 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -477,6 +477,11 @@ const Overview = new Lang.Class({ this._animateVisible(); }, + focusSearch: function() { + this.show(); + this._searchEntry.grab_key_focus(); + }, + fadeInDesktop: function() { this._desktopFade.opacity = 0; this._desktopFade.show(); diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 952613b31..84597fd93 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -21,6 +21,7 @@ const GnomeShellIface = + @@ -116,6 +117,10 @@ const GnomeShell = new Lang.Class({ return [success, returnValue]; }, + FocusSearch: function() { + Main.overview.focusSearch(); + }, + ShowOSD: function(params) { for (let param in params) params[param] = params[param].deep_unpack();