Switch the wizard's modifier choice when up or down are pressed
This commit is contained in:
parent
af71d3a2f1
commit
95fa121c56
|
@ -592,6 +592,12 @@ static int handle_key_press(void *ignored, xcb_connection_t *conn, xcb_key_press
|
||||||
finish();
|
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 */
|
/* cancel any time */
|
||||||
if (sym == XK_Escape)
|
if (sym == XK_Escape)
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Reference in New Issue