mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-06 07:15:30 -04:00
kitty: report-alternate: apply base-layout key to composed characters
This commit is contained in:
parent
7e9ca65f4d
commit
db95a90e57
1 changed files with 15 additions and 13 deletions
6
input.c
6
input.c
|
|
@ -1432,11 +1432,14 @@ emit_escapes:
|
|||
if (key == 0)
|
||||
key = sym_to_use;
|
||||
|
||||
if (report_alternate)
|
||||
alternate = xkb_keysym_to_utf32(sym);
|
||||
}
|
||||
|
||||
if (report_alternate) {
|
||||
/* The *shifted* key. May be the same as the unshifted
|
||||
* key - if so, this is filtered out below, when
|
||||
* emitting the CSI */
|
||||
alternate = xkb_keysym_to_utf32(sym);
|
||||
|
||||
/* Base layout key. I.e the symbol the pressed key
|
||||
* produces in the base/default layout (layout idx
|
||||
|
|
@ -1448,7 +1451,6 @@ emit_escapes:
|
|||
if (base_sym_count > 0)
|
||||
base = xkb_keysym_to_utf32(base_syms[0]);
|
||||
}
|
||||
}
|
||||
|
||||
final = 'u';
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue