Ignore unrecognized Ctrl keybindings - wmenu - 🔧 fork of wmenu
(HTM) git clone git@git.drkhsh.at/wmenu.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 542c307ef23a97f6f0ed255df51fcbe9b23ed07c
(DIR) parent cb884725f61b31e861f667d7517978ea55d1279f
(HTM) Author: adnano <me@adnano.co>
Date: Mon, 26 Feb 2024 06:59:09 -0500
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:
M main.c | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
(DIR) diff --git 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;
}
}