version 1.34, 2016/01/19 15:59:12 |
version 1.35, 2016/03/02 15:36:02 |
|
|
struct utf8_data ud; |
struct utf8_data ud; |
u_int i; |
u_int i; |
enum utf8_state more; |
enum utf8_state more; |
|
wchar_t wc; |
|
|
/* Is this no key? */ |
/* Is this no key? */ |
if (strcasecmp(string, "None") == 0) |
if (strcasecmp(string, "None") == 0) |
|
|
more = utf8_append(&ud, (u_char)string[i]); |
more = utf8_append(&ud, (u_char)string[i]); |
if (more != UTF8_DONE) |
if (more != UTF8_DONE) |
return (KEYC_UNKNOWN); |
return (KEYC_UNKNOWN); |
key = utf8_combine(&ud); |
if (utf8_combine(&ud, &wc) != UTF8_DONE) |
return (key | modifiers); |
return (KEYC_UNKNOWN); |
|
return (wc | modifiers); |
} |
} |
|
|
/* Otherwise look the key up in the table. */ |
/* Otherwise look the key up in the table. */ |