aboutsummaryrefslogtreecommitdiff
path: root/url-mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'url-mode.c')
-rw-r--r--url-mode.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/url-mode.c b/url-mode.c
index 20c9820b..cca7bd22 100644
--- a/url-mode.c
+++ b/url-mode.c
@@ -178,11 +178,14 @@ urls_input(struct seat *seat, struct terminal *term,
const xkb_keysym_t *raw_syms, size_t raw_count,
uint32_t serial)
{
- /* Key bindings */
+ /*
+ * Key bindings
+ */
+
+ /* Match translated symbol */
tll_foreach(bindings->url, it) {
const struct key_binding *bind = &it->item;
- /* Match translated symbol */
if (bind->k.sym == sym &&
bind->mods == (mods & ~consumed))
{
@@ -190,6 +193,11 @@ urls_input(struct seat *seat, struct terminal *term,
return;
}
+ }
+
+ /* Match untranslated symbols */
+ tll_foreach(bindings->url, it) {
+ const struct key_binding *bind = &it->item;
if (bind->mods != mods)
continue;
@@ -199,6 +207,13 @@ urls_input(struct seat *seat, struct terminal *term,
return;
}
}
+ }
+
+ /* Match raw key code */
+ tll_foreach(bindings->url, it) {
+ const struct key_binding *bind = &it->item;
+ if (bind->mods != mods)
+ continue;
/* Match raw key code */
tll_foreach(bind->k.key_codes, code) {