mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
It would help if I read my own comments... make alt keys work again by sending
alt AND the key not alt instead of it.
This commit is contained in:
parent
862fe15c32
commit
6a6a42aa3a
@ -173,9 +173,8 @@ input_key(struct window_pane *wp, int key)
|
|||||||
*/
|
*/
|
||||||
if (key != KEYC_NONE && (key & ~KEYC_ESCAPE) < 0x100) {
|
if (key != KEYC_NONE && (key & ~KEYC_ESCAPE) < 0x100) {
|
||||||
if (key & KEYC_ESCAPE)
|
if (key & KEYC_ESCAPE)
|
||||||
ch = '\033';
|
bufferevent_write(wp->event, "\033", 1);
|
||||||
else
|
ch = key & ~KEYC_ESCAPE;
|
||||||
ch = key & ~KEYC_ESCAPE;
|
|
||||||
bufferevent_write(wp->event, &ch, 1);
|
bufferevent_write(wp->event, &ch, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user