diff options
author | nicm <nicm> | 2017-06-06 15:49:35 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-06-06 15:49:35 +0000 |
commit | 50b27c8c0dc65cb418ed422e2cdd035a7bafedfe (patch) | |
tree | 3e5e38744009a31ecbb77d1b5494bbd34c174950 | |
parent | bbc35b0b19ba763c7e32185c4c12233c041b26de (diff) | |
download | rtmux-50b27c8c0dc65cb418ed422e2cdd035a7bafedfe.tar.gz rtmux-50b27c8c0dc65cb418ed422e2cdd035a7bafedfe.tar.bz2 rtmux-50b27c8c0dc65cb418ed422e2cdd035a7bafedfe.zip |
Continue and pass keys through if they are repeated keys, so that the
first key after a repeated key doesn't get lost.
-rw-r--r-- | server-client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server-client.c b/server-client.c index e8faedc7..5694a2a0 100644 --- a/server-client.c +++ b/server-client.c @@ -816,7 +816,7 @@ server_client_handle_key(struct client *c, key_code key) struct timeval tv; struct key_table *table, *first; struct key_binding bd_find, *bd; - int xtimeout; + int xtimeout, flags; struct cmd_find_state fs; /* Check the client is good to accept input. */ @@ -913,6 +913,7 @@ server_client_handle_key(struct client *c, key_code key) server_status_client(c); return; } + flags = c->flags; retry: /* Log key table. */ @@ -990,7 +991,7 @@ retry: * No match in the root table either. If this wasn't the first table * tried, don't pass the key to the pane. */ - if (first != table) { + if (first != table && (~flags & CLIENT_REPEAT)) { server_client_set_key_table(c, NULL); server_status_client(c); return; |