[appSwitcher] Check the modifier state rather than assuming Meta
It isn't guaranteed that Alt+Shift equals to Meta, so we have to check the modifier instead. https://bugzilla.gnome.org/show_bug.cgi?id=629368
This commit is contained in:
parent
687bfbb081
commit
907dd4381b
@ -264,9 +264,10 @@ AltTabPopup.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_keyReleaseEvent : function(actor, event) {
|
_keyReleaseEvent : function(actor, event) {
|
||||||
let keysym = event.get_key_symbol();
|
let [x, y, mods] = global.get_pointer();
|
||||||
|
let state = mods & Clutter.ModifierType.MOD1_MASK;
|
||||||
|
|
||||||
if (keysym == Clutter.Alt_L || keysym == Clutter.Alt_R || keysym == Clutter.Meta_L || keysym == Clutter.Meta_R)
|
if (state == 0)
|
||||||
this._finish();
|
this._finish();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user