mirror of
https://github.com/labwc/labwc.git
synced 2026-06-13 14:33:18 -04:00
cycle: accept Enter to finish window switcher
Accept Enter key to finish window switcher and focus the selected window. This follows Openbox's behavior. This is useful when the user binds NextWindow/PreviousWindow to a key without modifiers.
This commit is contained in:
parent
dd02daedca
commit
26d40241c0
1 changed files with 5 additions and 0 deletions
|
|
@ -472,6 +472,11 @@ handle_cycle_view_key(struct keyinfo *keyinfo)
|
||||||
/* Esc deactivates window switcher */
|
/* Esc deactivates window switcher */
|
||||||
cycle_finish(/*switch_focus*/ false);
|
cycle_finish(/*switch_focus*/ false);
|
||||||
return true;
|
return true;
|
||||||
|
case XKB_KEY_Return:
|
||||||
|
case XKB_KEY_KP_Enter:
|
||||||
|
/* Enter accepts the currently selected window */
|
||||||
|
cycle_finish(/*switch_focus*/ true);
|
||||||
|
return true;
|
||||||
case XKB_KEY_Up:
|
case XKB_KEY_Up:
|
||||||
case XKB_KEY_Left:
|
case XKB_KEY_Left:
|
||||||
/* Up/Left cycles the window backward */
|
/* Up/Left cycles the window backward */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue