mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
Merge branch 'kitty-kbd-dont-fallback-to-xkb-symbol'
This commit is contained in:
commit
ee19c765bb
2 changed files with 6 additions and 4 deletions
|
|
@ -52,6 +52,8 @@
|
|||
* Font size adjustment (“zooming”) when font is configured with a
|
||||
**pixelsize**, and `dpi-aware=no`
|
||||
(https://codeberg.org/dnkl/foot/issues/842).
|
||||
* Key presses triggering keyboard layout switches also being emitted
|
||||
CSI codes in the Kitty keyboard protocol.
|
||||
|
||||
|
||||
### Security
|
||||
|
|
|
|||
8
input.c
8
input.c
|
|
@ -1329,7 +1329,7 @@ emit_escapes:
|
|||
else {
|
||||
key = xkb_keysym_to_utf32(sym_to_use);
|
||||
if (key == 0)
|
||||
key = sym_to_use;
|
||||
return false;
|
||||
|
||||
/* The *shifted* key. May be the same as the unshifted
|
||||
* key - if so, this is filtered out below, when
|
||||
|
|
@ -1349,6 +1349,9 @@ emit_escapes:
|
|||
final = 'u';
|
||||
}
|
||||
|
||||
if (key < 0)
|
||||
return false;
|
||||
|
||||
xassert(encoded_mods >= 1);
|
||||
|
||||
char event[4];
|
||||
|
|
@ -1365,9 +1368,6 @@ emit_escapes:
|
|||
size_t left = sizeof(buf);
|
||||
size_t bytes;
|
||||
|
||||
if (key < 0)
|
||||
return false;
|
||||
|
||||
if (final == 'u' || final == '~') {
|
||||
bytes = snprintf(p, left, "\x1b[%u", key);
|
||||
p += bytes; left -= bytes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue