diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index fc982781f..e5efcfaec 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -186,6 +186,14 @@ var SwitcherPopup = GObject.registerClass({ if (keysym === Clutter.KEY_Escape || keysym === Clutter.KEY_Tab) this.fadeAndDestroy(); + // Allow to explicitly select the current item; this is particularly + // useful for no-modifier popups + if (keysym === Clutter.KEY_space || + keysym === Clutter.KEY_Return || + keysym === Clutter.KEY_KP_Enter || + keysym === Clutter.KEY_ISO_Enter) + this._finish(keyEvent.time); + return Clutter.EVENT_STOP; }