Sync OpenBSD patchset 502:

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:
Tiago Cunha 2009-11-08 23:08:12 +00:00
parent 3acb995ef3
commit 0cd4f4e321

View File

@ -1,4 +1,4 @@
/* $Id: input-keys.c,v 1.40 2009-11-08 23:02:56 tcunha Exp $ */
/* $Id: input-keys.c,v 1.41 2009-11-08 23:08:12 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -173,8 +173,7 @@ input_key(struct window_pane *wp, int key)
*/
if (key != KEYC_NONE && (key & ~KEYC_ESCAPE) < 0x100) {
if (key & KEYC_ESCAPE)
ch = '\033';
else
bufferevent_write(wp->event, "\033", 1);
ch = key & ~KEYC_ESCAPE;
bufferevent_write(wp->event, &ch, 1);
return;