Mask off flags bits in menu keys.

This commit is contained in:
Nicholas Marriott 2020-05-15 16:17:20 +01:00
parent 6d92b99dbc
commit 3a4f3ee087

2
menu.c
View File

@ -226,7 +226,7 @@ menu_key_cb(struct client *c, struct key_event *event)
goto chosen;
}
}
switch (event->key) {
switch (event->key & ~KEYC_MASK_FLAGS) {
case KEYC_UP:
case 'k':
if (old == -1)