Ignore unrecognized Ctrl keybindings

Currently, unrecognized Ctrl keybindings are treated as if Ctrl wasn't
pressed. For example, Ctrl+q results in q being typed. Instead, ignore
these keypresses.
This commit is contained in:
adnano 2024-02-26 06:59:09 -05:00
parent cb884725f6
commit 542c307ef2

6
main.c
View file

@ -621,6 +621,12 @@ void keypress(struct menu_state *state, enum wl_keyboard_key_state key_state,
} }
render_frame(state); render_frame(state);
return; return;
case XKB_KEY_Return:
case XKB_KEY_KP_Enter:
break;
default:
return;
} }
} }