From 23ca645054edbd030047c8d3fc1d0c54328c3034 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 29 Oct 2006 18:27:54 +0200 Subject: [PATCH] terminal: Treat ESC O as Alt-O if the next byte is unsuitable for SS3. --- src/terminal/kbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/terminal/kbd.c b/src/terminal/kbd.c index 4e0dfd9d9..06ec6bf95 100644 --- a/src/terminal/kbd.c +++ b/src/terminal/kbd.c @@ -1024,7 +1024,8 @@ process_queue(struct itrm *itrm) set_kbd_event(&ev, itrm->in.queue.data[1], KBD_MOD_ALT); } - } else { /* ESC followed by something else */ + } + if (el == 0) { /* Begins with ESC, but none of the above */ el = 2; set_kbd_event(&ev, itrm->in.queue.data[1], KBD_MOD_ALT);