aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/input.c b/input.c
index 22566411..c3ddbf13 100644
--- a/input.c
+++ b/input.c
@@ -1584,18 +1584,6 @@ key_press_release(struct seat *seat, struct terminal *term, uint32_t serial,
* User configurable bindings
*/
if (pressed) {
- /* Match translated symbol */
- tll_foreach(bindings->key, it) {
- const struct key_binding *bind = &it->item;
-
- if (bind->k.sym == sym &&
- bind->mods == (mods & ~consumed) &&
- execute_binding(seat, term, bind, serial, 1))
- {
- goto maybe_repeat;
- }
- }
-
/* Match untranslated symbols */
tll_foreach(bindings->key, it) {
const struct key_binding *bind = &it->item;
@@ -1612,6 +1600,18 @@ key_press_release(struct seat *seat, struct terminal *term, uint32_t serial,
}
}
+ /* Match translated symbol */
+ tll_foreach(bindings->key, it) {
+ const struct key_binding *bind = &it->item;
+
+ if (bind->k.sym == sym &&
+ bind->mods == (mods & ~consumed) &&
+ execute_binding(seat, term, bind, serial, 1))
+ {
+ goto maybe_repeat;
+ }
+ }
+
/* Match raw key code */
tll_foreach(bindings->key, it) {
const struct key_binding *bind = &it->item;