summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-11-08 23:08:12 +0000
committerTiago Cunha <tcunha@gmx.com>2009-11-08 23:08:12 +0000
commit0cd4f4e321476a1e5e437241a9ed394474de3aee (patch)
tree9e2b10e993166277c08b01304dfe13b5e2eb2b81 /input-keys.c
parent3acb995ef370d95057cbb2ba8236472b388d06e6 (diff)
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.
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/input-keys.c b/input-keys.c
index 516a349f..353c38af 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -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,9 +173,8 @@ input_key(struct window_pane *wp, int key)
*/
if (key != KEYC_NONE && (key & ~KEYC_ESCAPE) < 0x100) {
if (key & KEYC_ESCAPE)
- ch = '\033';
- else
- ch = key & ~KEYC_ESCAPE;
+ bufferevent_write(wp->event, "\033", 1);
+ ch = key & ~KEYC_ESCAPE;
bufferevent_write(wp->event, &ch, 1);
return;
}