version 1.29, 2015/11/12 22:04:37 |
version 1.30, 2015/11/14 10:56:31 |
|
|
static const char *other = "!#()+,-.0123456789:;<=>?'\r\t"; |
static const char *other = "!#()+,-.0123456789:;<=>?'\r\t"; |
key_code key; |
key_code key; |
u_short u; |
u_short u; |
int size; |
int size, more; |
key_code modifiers; |
key_code modifiers; |
struct utf8_data ud; |
struct utf8_data ud; |
u_int i; |
u_int i; |
|
|
if (strlen(string) != ud.size) |
if (strlen(string) != ud.size) |
return (KEYC_NONE); |
return (KEYC_NONE); |
for (i = 1; i < ud.size; i++) |
for (i = 1; i < ud.size; i++) |
utf8_append(&ud, (u_char)string[i]); |
more = utf8_append(&ud, (u_char)string[i]); |
|
if (more != 0) |
|
return (KEYC_NONE); |
key = utf8_combine(&ud); |
key = utf8_combine(&ud); |
return (key | modifiers); |
return (key | modifiers); |
} |
} |