aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-18 13:52:39 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-18 13:52:39 +0000
commita69b818a6232a3704e3125e17f7e392382faee84 (patch)
treeff3677a91266ac40e442b2c10f00878df3bfd642 /search.c
parentconf: bindings: case insensitive matching against 'none' (diff)
input: bindings: don't match raw key code alone - mods must also match
Diffstat (limited to 'search.c')
-rw-r--r--search.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/search.c b/search.c
index 35d1be0f..1968565a 100644
--- a/search.c
+++ b/search.c
@@ -430,8 +430,11 @@ search_input(struct terminal *term, uint32_t key, xkb_keysym_t sym,
* User configurable bindings
*/
tll_foreach(term->wl->kbd.bindings.search, it) {
+ if (it->item.mods != mods)
+ continue;
+
/* Match symbol */
- if (it->item.mods == mods && it->item.sym == sym) {
+ if (it->item.sym == sym) {
input_execute_binding(term, it->item.action, serial);
return;
}