From f36a59b17c74705732d3b9f4fd900b6b9168c0eb Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 21 Apr 2014 21:41:30 -0400 Subject: alt+key should send escape+key --- src/window-xlib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/window-xlib.c b/src/window-xlib.c index aeb8759..8677313 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -510,6 +510,9 @@ static void runes_window_backend_handle_key_event(RunesTerm *t, XKeyEvent *e) switch (s) { case XLookupChars: case XLookupBoth: + if (e->state & Mod1Mask) { + runes_pty_backend_write(t, "\e", 1); + } runes_pty_backend_write(t, buf, chars); break; case XLookupKeySym: { -- cgit v1.2.3-54-g00ecf