diff options
author | nicm <nicm> | 2020-11-17 08:13:35 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-11-17 08:13:35 +0000 |
commit | 0d28ee927421c46315bc0b47b5f8f49a8392efa4 (patch) | |
tree | 87ded4af451f59fb26e973c3c3d4a77ce4f9ec8a /input-keys.c | |
parent | bbab5b7a30717c4455f7725e6adc364f6c274e7d (diff) | |
download | rtmux-0d28ee927421c46315bc0b47b5f8f49a8392efa4.tar.gz rtmux-0d28ee927421c46315bc0b47b5f8f49a8392efa4.tar.bz2 rtmux-0d28ee927421c46315bc0b47b5f8f49a8392efa4.zip |
Log missing keys when extended keys is on rather than fatal().
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/input-keys.c b/input-keys.c index 224bcfa5..5cd43dc3 100644 --- a/input-keys.c +++ b/input-keys.c @@ -330,7 +330,8 @@ static struct input_key_entry input_key_defaults[] = { .data = "\033[2;_~" }, { .key = KEYC_DC|KEYC_BUILD_MODIFIERS, - .data = "\033[3;_~" } + .data = "\033[3;_~" + } }; static const key_code input_key_modifiers[] = { 0, @@ -557,7 +558,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) modifier = '8'; break; default: - fatalx("invalid key modifiers: %llx", key); + goto missing; } xsnprintf(tmp, sizeof tmp, "\033[%llu;%cu", outkey, modifier); bufferevent_write(bev, tmp, strlen(tmp)); |