mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-18 22:05:25 -05: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
28
input.c
28
input.c
|
|
@ -1432,22 +1432,24 @@ emit_escapes:
|
||||||
if (key == 0)
|
if (key == 0)
|
||||||
key = sym_to_use;
|
key = sym_to_use;
|
||||||
|
|
||||||
if (report_alternate) {
|
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);
|
alternate = xkb_keysym_to_utf32(sym);
|
||||||
|
}
|
||||||
|
|
||||||
/* Base layout key. I.e the symbol the pressed key
|
if (report_alternate) {
|
||||||
* produces in the base/default layout (layout idx
|
/* The *shifted* key. May be the same as the unshifted
|
||||||
* 0) */
|
* key - if so, this is filtered out below, when
|
||||||
const xkb_keysym_t *base_syms;
|
* emitting the CSI */
|
||||||
int base_sym_count = xkb_keymap_key_get_syms_by_level(
|
|
||||||
seat->kbd.xkb_keymap, ctx->key, 0, 0, &base_syms);
|
|
||||||
|
|
||||||
if (base_sym_count > 0)
|
/* Base layout key. I.e the symbol the pressed key
|
||||||
base = xkb_keysym_to_utf32(base_syms[0]);
|
* produces in the base/default layout (layout idx
|
||||||
}
|
* 0) */
|
||||||
|
const xkb_keysym_t *base_syms;
|
||||||
|
int base_sym_count = xkb_keymap_key_get_syms_by_level(
|
||||||
|
seat->kbd.xkb_keymap, ctx->key, 0, 0, &base_syms);
|
||||||
|
|
||||||
|
if (base_sym_count > 0)
|
||||||
|
base = xkb_keysym_to_utf32(base_syms[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
final = 'u';
|
final = 'u';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue