[gnome-shell] [appSwitcher] Close the switcher on Meta_L/R release



commit 246d9f135763748754b7d835f666fbeb0a2444a1
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Sat Sep 11 19:01:42 2010 +0200

    [appSwitcher] Close the switcher on Meta_L/R release
    
    The keyReleaseEvent handler does not take into account that a
    user might release Alt while still holding shift
    (the keycode becomes Meta_L/R in that case).
    
    The result is that the switcher stays open which is unexpected.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=629368

 js/ui/altTab.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 0b30167..6417395 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -266,7 +266,7 @@ AltTabPopup.prototype = {
     _keyReleaseEvent : function(actor, event) {
         let keysym = event.get_key_symbol();
 
-        if (keysym == Clutter.Alt_L || keysym == Clutter.Alt_R)
+        if (keysym == Clutter.Alt_L || keysym == Clutter.Alt_R || keysym == Clutter.Meta_L || keysym == Clutter.Meta_R)
             this._finish();
 
         return true;



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