[gnome-shell/modekill] viewSelector: Allow to close the application view with escape



commit 3fa1edcf5464f13693367612ee9a9022354c3d88
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Aug 15 12:20:24 2012 +0200

    viewSelector: Allow to close the application view with escape
    
    With the latest changes to the overview, the application view is now
    clearly on a different level compared to the window picker. For that
    reason it now makes sense to close it on Escape rather than hiding
    the overview directly, as we do for search.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682109

 js/ui/viewSelector.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index c1a6c48..190bf54 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -231,6 +231,8 @@ const ViewSelector = new Lang.Class({
         if (symbol == Clutter.Escape) {
             if (this.active)
                 this.reset();
+            else if (this._showAppsButton.checked)
+                this._resetShowAppsButton();
             else
                 Main.overview.hide();
             return true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]