aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authoradnano <me@adnano.co>2024-02-26 06:59:09 -0500
committeradnano <me@adnano.co>2024-02-26 06:59:09 -0500
commit542c307ef23a97f6f0ed255df51fcbe9b23ed07c (patch)
treea3107b5e83450cf1d1f2536094ef98695ee30bf5 /main.c
parentcb884725f61b31e861f667d7517978ea55d1279f (diff)
downloadwmenu-542c307ef23a97f6f0ed255df51fcbe9b23ed07c.tar.gz
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.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
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;
}
}