diff options
author | adnano <me@adnano.co> | 2024-02-26 06:59:09 -0500 |
---|---|---|
committer | adnano <me@adnano.co> | 2024-02-26 06:59:09 -0500 |
commit | 542c307ef23a97f6f0ed255df51fcbe9b23ed07c (patch) | |
tree | a3107b5e83450cf1d1f2536094ef98695ee30bf5 /main.c | |
parent | cb884725f61b31e861f667d7517978ea55d1279f (diff) | |
download | wmenu-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } } |