diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-18 13:52:39 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-18 13:52:39 +0000 |
| commit | a69b818a6232a3704e3125e17f7e392382faee84 (patch) | |
| tree | ff3677a91266ac40e442b2c10f00878df3bfd642 /input.c | |
| parent | conf: bindings: case insensitive matching against 'none' (diff) | |
input: bindings: don't match raw key code alone - mods must also match
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -558,8 +558,11 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, * User configurable bindings */ tll_foreach(wayl->kbd.bindings.key, it) { + if (it->item.mods != effective_mods) + continue; + /* Match symbol */ - if (it->item.mods == effective_mods && it->item.sym == sym) { + if (it->item.sym == sym) { input_execute_binding(term, it->item.action, serial); goto maybe_repeat; } |
