version 1.66, 2021/06/10 07:21:09 |
version 1.67, 2021/06/10 07:38:28 |
|
|
} |
} |
|
|
/* Convert the standard control keys. */ |
/* Convert the standard control keys. */ |
if (key < KEYC_BASE && |
if (key <= 127 && |
(modifiers & KEYC_CTRL) && |
(modifiers & KEYC_CTRL) && |
strchr(other, key) == NULL && |
strchr(other, key) == NULL && |
key != 9 && |
key != 9 && |
|
|
goto out; |
goto out; |
} |
} |
|
|
/* Is this a UTF-8 key? */ |
/* Is this a Unicode key? */ |
if (key > 127 && key < KEYC_BASE) { |
if (KEYC_IS_UNICODE(key)) { |
utf8_to_data(key, &ud); |
utf8_to_data(key, &ud); |
off = strlen(out); |
off = strlen(out); |
memcpy(out + off, ud.data, ud.size); |
memcpy(out + off, ud.data, ud.size); |