diff options
author | nicm <nicm> | 2020-11-17 08:13:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-02-16 09:41:55 +0000 |
commit | 5c275c2a1a963876d4ac392067e42120417dbf43 (patch) | |
tree | db06609c88ce6c1e0ff53072ae917c78f4bec59f /input-keys.c | |
parent | 5df9b3650a5d4c1dd074897f8e206f7d1a5f6de2 (diff) | |
download | rtmux-5c275c2a1a963876d4ac392067e42120417dbf43.tar.gz rtmux-5c275c2a1a963876d4ac392067e42120417dbf43.tar.bz2 rtmux-5c275c2a1a963876d4ac392067e42120417dbf43.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 32ca4b97..39a72cdc 100644 --- a/input-keys.c +++ b/input-keys.c @@ -329,7 +329,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, @@ -556,7 +557,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)); |