[AppSwitcher] Allow use of arrow keys in the popup

https://bugzilla.gnome.org/show_bug.cgi?id=590563
This commit is contained in:
Dan Winship 2009-09-23 12:27:23 -04:00
parent 97df305a6d
commit c2af05f753

View File

@ -154,8 +154,16 @@ AltTabPopup.prototype = {
if (keysym == Clutter.Tab) if (keysym == Clutter.Tab)
this._updateSelection(backwards ? -1 : 1); this._updateSelection(backwards ? -1 : 1);
else if (keysym == Clutter.Left)
this._updateSelection(-1);
else if (keysym == Clutter.Right)
this._updateSelection(1);
else if (keysym == Clutter.grave) else if (keysym == Clutter.grave)
this._updateWindowSelection(backwards ? -1 : 1); this._updateWindowSelection(backwards ? -1 : 1);
else if (keysym == Clutter.Up)
this._updateWindowSelection(-1);
else if (keysym == Clutter.Down)
this._updateWindowSelection(1);
else if (keysym == Clutter.Escape) else if (keysym == Clutter.Escape)
this.destroy(); this.destroy();