Fix Kitty key encoding: legacy fallback, F3, case, send-keys drop.

This commit is contained in:
Michael Grant
2026-09-29 07:23:45 +01:00
parent 25caebc173
commit cf7aad1ce8
4 changed files with 87 additions and 8 deletions

View File

@@ -132,10 +132,13 @@ cmd_send_keys_inject_string(struct cmdq_item *item, struct cmdq_item *after,
if (!literal) {
key = key_string_lookup_string(s);
if (key != KEYC_NONE && key != KEYC_UNKNOWN) {
/*
* A recognized key name that the pane could not
* encode is dropped, not typed as literal text.
*/
after = cmd_send_keys_inject_key(item, after, args,
key);
if (after != NULL)
return (after);
return (after == NULL ? item : after);
}
literal = 1;
}