Merge pull request #1596 from Deiz/wizard-add-up-down
Switch the wizard's modifier choice when up or down are pressed
This commit is contained in:
commit
0391ac2e69
|
@ -592,6 +592,12 @@ static int handle_key_press(void *ignored, xcb_connection_t *conn, xcb_key_press
|
|||
finish();
|
||||
}
|
||||
|
||||
/* Swap between modifiers when up or down is pressed. */
|
||||
if (sym == XK_Up || sym == XK_Down) {
|
||||
modifier = (modifier == MOD_Mod1) ? MOD_Mod4 : MOD_Mod1;
|
||||
handle_expose();
|
||||
}
|
||||
|
||||
/* cancel any time */
|
||||
if (sym == XK_Escape)
|
||||
exit(0);
|
||||
|
|
Loading…
Reference in New Issue