arrow key works on gdi
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@244 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
2cecb6c34a
commit
a8f2628009
5 changed files with 57 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ static void key(MwWidget handle, int code) {
|
|||
int incr = 0;
|
||||
out = malloc(strlen(str) + 1 + 1);
|
||||
incr += MwUTF8Copy(str, 0, out, 0, t->cursor);
|
||||
out[incr++] = code;
|
||||
MwUTF32ToUTF8(code, out + incr);
|
||||
MwUTF8Copy(str, t->cursor, out, t->cursor + 1, MwUTF8Length(str) - t->cursor);
|
||||
|
||||
t->cursor++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue