diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-20 19:31:59 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-28 14:14:53 +0000 |
| commit | b9d03c16a6f01aa1d1154423761e447bc171ee11 (patch) | |
| tree | 00d3d8a0680be5beda675c518fbbc9fe5e178a96 /subprojects/fcft.wrap | |
| parent | input: wip: add support for kitty kbd protocol “Disambiguate escape codes” (diff) | |
input: kitty: use base symbol instead of lowering the symbol
When emitting an escape sequence for a printable character, with
modifiers (e.g. ctrl+a), use the key’s base symbol instead of
“lowering” it.
This means we now handle e.g. ctrl+2 and ctrl+shift+2, with Swedish
layout.
There’s a twist however. We *only* use the base symbol if the
modifiers that is used to “generate” the symbol are “significant”.
Significant modifiers are, in this context, modifiers we can encode in
the kitty escape sequences.
In the Swedish layout, pressing AltGr+2 results in ‘@’. AltGr cannot
be encoded in the kitty protocol. If we were to use the base symbol,
AltGr+Alt+2 would result in exactly the same escape sequence as Alt+2.
Diffstat (limited to 'subprojects/fcft.wrap')
0 files changed, 0 insertions, 0 deletions
