input: kitty: always use shifted key when it's the result of a compose

Closes #1987
This commit is contained in:
Daniel Eklöf 2025-03-10 15:47:20 +01:00
parent 605694bc93
commit 8d2627b1ef
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1411,7 +1411,7 @@ emit_escapes:
size_t left = sizeof(buf);
size_t bytes;
const int key = unshifted > 0 && isc32print(unshifted) ? unshifted : shifted;
const int key = unshifted > 0 && isc32print(unshifted) && !composed ? unshifted : shifted;
const int alternate = shifted;
if (final == 'u' || final == '~') {