diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-07-09 17:02:26 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-07-09 17:02:26 +0100 |
commit | 98ef369b27b631b7893446fbdf7c9d6ce9c1b43a (patch) | |
tree | 279d31f5e5c58725740969330041d5294a8828c4 /input-keys.c | |
parent | 177599efb7d6477db8ce2bc6da82b16cb0327954 (diff) | |
parent | fc2016dbb665f01e795a89632a1bb74294bfc4e1 (diff) | |
download | rtmux-98ef369b27b631b7893446fbdf7c9d6ce9c1b43a.tar.gz rtmux-98ef369b27b631b7893446fbdf7c9d6ce9c1b43a.tar.bz2 rtmux-98ef369b27b631b7893446fbdf7c9d6ce9c1b43a.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/input-keys.c b/input-keys.c index f0a38c09..9e47a553 100644 --- a/input-keys.c +++ b/input-keys.c @@ -172,6 +172,13 @@ input_key(struct window_pane *wp, key_code key, struct mouse_event *m) return; } + /* Literal keys go as themselves (can't be more than eight bits). */ + if (key & KEYC_LITERAL) { + ud.data[0] = (u_char)key; + bufferevent_write(wp->event, &ud.data[0], 1); + return; + } + /* * If this is a normal 7-bit key, just send it, with a leading escape * if necessary. If it is a UTF-8 key, split it and send it. |