From 246d9f135763748754b7d835f666fbeb0a2444a1 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sat, 11 Sep 2010 19:01:42 +0200 Subject: [PATCH] [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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 0b301678a..641739518 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;