summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-04 23:00:22 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-04 23:00:22 +0000
commit6a6a42aa3a6ebfedc428288babfb9e0b856d5732 (patch)
tree06f093b89c0b4a546da9a1a6db37b91a38d8134d /input-keys.c
parent862fe15c32d30cf2769592fd225507acfd49aad1 (diff)
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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/input-keys.c b/input-keys.c
index e8a163a0..35834571 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -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;
}