fix: alt key with two bytes keys

This commit is contained in:
Antoine Vaure 2026-02-05 11:02:35 +01:00
parent df11aae8c3
commit 540ccc2b57

7
x.c
View file

@ -3739,6 +3739,13 @@ kpress(XEvent *ev)
buf[0] = '\033'; buf[0] = '\033';
len = 2; 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); ttywrite(buf, len, 1);
} }