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:
Michael Stapelberg 2015-03-28 18:16:27 +01:00
commit 0391ac2e69
1 changed files with 6 additions and 0 deletions

View File

@ -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);