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



commit 9def50a32aa10beeb87ca05691a657effdf9b094
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 72be656..50399a5 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -230,6 +230,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]