mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 08:47:47 +02:00
Add tests for legacy letter key encodings
This commit is contained in:
@@ -169,7 +169,7 @@ pyencode_key_for_tty(PyObject *self UNUSED, PyObject *args, PyObject *kw) {
|
||||
char output[KEY_BUFFER_SIZE+1] = {0};
|
||||
int num = encode_glfw_key_event(&ev, cursor_key_mode, key_encoding_flags, output);
|
||||
if (num == SEND_TEXT_TO_CHILD) return PyUnicode_FromString(text);
|
||||
return PyUnicode_FromString(output);
|
||||
return PyUnicode_FromStringAndSize(output, MAX(0, num));
|
||||
}
|
||||
|
||||
static PyMethodDef module_methods[] = {
|
||||
|
||||
Reference in New Issue
Block a user