aboutsummaryrefslogtreecommitdiff
path: root/popup.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 16:35:13 +0000
committernicm <nicm>2020-05-16 16:35:13 +0000
commit292b335ca5b594729cf9ff79f0f4273c725537a4 (patch)
tree0eec72b4ead11b18a656536d517ca119e89c9dea /popup.c
parente2a26740b9880d0066c8a04ca2d7202e7f99bd07 (diff)
downloadrtmux-292b335ca5b594729cf9ff79f0f4273c725537a4.tar.gz
rtmux-292b335ca5b594729cf9ff79f0f4273c725537a4.tar.bz2
rtmux-292b335ca5b594729cf9ff79f0f4273c725537a4.zip
Separate key flags and modifiers, log key flags, make the "xterm" flag
more explicit and fix M- keys with a leading escape.
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/popup.c b/popup.c
index 93ecd2a1..87658a6f 100644
--- a/popup.c
+++ b/popup.c
@@ -329,7 +329,7 @@ popup_key_cb(struct client *c, struct key_event *event)
bufferevent_write(job_get_event(pd->job), buf, len);
return (0);
}
- input_key(NULL, &pd->s, job_get_event(pd->job), event->key);
+ input_key(&pd->s, job_get_event(pd->job), event->key);
return (0);
}
@@ -341,7 +341,7 @@ popup_key_cb(struct client *c, struct key_event *event)
format_defaults(ft, c, fs->s, fs->wl, fs->wp);
else
format_defaults(ft, c, NULL, NULL, NULL);
- format_add(ft, "popup_key", "%s", key_string_lookup_key(event->key));
+ format_add(ft, "popup_key", "%s", key_string_lookup_key(event->key, 0));
if (KEYC_IS_MOUSE(event->key)) {
format_add(ft, "popup_mouse", "1");
format_add(ft, "popup_mouse_x", "%u", m->x - pd->px);