From db22cc6dc7f28cf58c5594072050dbe3095ed99e Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sat, 23 Feb 2008 23:15:19 +0000 Subject: Preserve modifiers on XTerm's CSI 27 ~ modified Unicode sequence --- termkey.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/termkey.c b/termkey.c index 8092807..ea9ba6b 100644 --- a/termkey.c +++ b/termkey.c @@ -418,7 +418,9 @@ static termkey_result getkey_csi(termkey_t *tk, size_t introlen, termkey_key *ke if(cmd == '~') { if(arg[0] == 27) { + int mod = key->modifiers; do_codepoint(tk, arg[2], key); + key->modifiers |= mod; } else if(arg[0] >= 0 && arg[0] < tk->ncsifuncs) { key->code = tk->csifuncs[arg[0]].sym; -- cgit v1.2.3-70-g09d2