Commit d52b23de authored by Florian Müllner's avatar Florian Müllner Committed by Florian Müllner

switcherPopup: Improve modifier-less keybinding navigation

Commit c8994538 lifted the requirement of switcher keybindings
to contain a modifier, however it is currently only possible to
finish it by letting it time out.

Improve that by also accepting space/enter key presses to confirm the
selection immediately.

parent 998fe584
......@@ -186,6 +186,14 @@ var SwitcherPopup = GObject.registerClass({
if (keysym === Clutter.KEY_Escape || keysym === Clutter.KEY_Tab)
// 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)
return Clutter.EVENT_STOP;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment