Preserve modifiers on XTerm's CSI 27 ~ modified Unicode sequence

This commit is contained in:
Paul LeoNerd Evans 2008-02-23 23:15:19 +00:00
parent 9dfd4f1116
commit db22cc6dc7
1 changed files with 2 additions and 0 deletions

View File

@ -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;