fix: alt key with two bytes keys
This commit is contained in:
parent
df11aae8c3
commit
540ccc2b57
1 changed files with 7 additions and 0 deletions
7
x.c
7
x.c
|
|
@ -3739,6 +3739,13 @@ kpress(XEvent *ev)
|
|||
buf[0] = '\033';
|
||||
len = 2;
|
||||
}
|
||||
}
|
||||
if (len > 1 && len != 64 && e->state & Mod1Mask) {
|
||||
// TODO: does this work with MODE_8BIT ?
|
||||
for (int i = len; i != 0; i -= 1)
|
||||
buf[i] = buf[i-1];
|
||||
buf[0] = '\033';
|
||||
len += 1;
|
||||
}
|
||||
ttywrite(buf, len, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue