From 542c307ef23a97f6f0ed255df51fcbe9b23ed07c Mon Sep 17 00:00:00 2001 From: adnano Date: Mon, 26 Feb 2024 06:59:09 -0500 Subject: 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. --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 3bc0f0a..22a1e52 100644 --- a/main.c +++ b/main.c @@ -621,6 +621,12 @@ void keypress(struct menu_state *state, enum wl_keyboard_key_state key_state, } render_frame(state); return; + + case XKB_KEY_Return: + case XKB_KEY_KP_Enter: + break; + default: + return; } } -- cgit v1.2.3