diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-23 23:15:19 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-23 23:15:19 +0000 |
commit | db22cc6dc7f28cf58c5594072050dbe3095ed99e (patch) | |
tree | 5fe4e68f8b4fdd64a290055b0bfe43e6beff6aaf | |
parent | 9dfd4f1116cf292d1ce6fa1d3946f41164c47f37 (diff) | |
download | termo-db22cc6dc7f28cf58c5594072050dbe3095ed99e.tar.gz termo-db22cc6dc7f28cf58c5594072050dbe3095ed99e.tar.xz termo-db22cc6dc7f28cf58c5594072050dbe3095ed99e.zip |
Preserve modifiers on XTerm's CSI 27 ~ modified Unicode sequence
-rw-r--r-- | termkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |