mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
input: discard canceled compose sequences
This commit is contained in:
parent
f15a2af0b8
commit
f1c876884a
1 changed files with 2 additions and 0 deletions
2
input.c
2
input.c
|
|
@ -318,6 +318,8 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
||||||
count = xkb_compose_state_get_utf8(
|
count = xkb_compose_state_get_utf8(
|
||||||
wayl->kbd.xkb_compose_state, (char *)buf, sizeof(buf));
|
wayl->kbd.xkb_compose_state, (char *)buf, sizeof(buf));
|
||||||
xkb_compose_state_reset(wayl->kbd.xkb_compose_state);
|
xkb_compose_state_reset(wayl->kbd.xkb_compose_state);
|
||||||
|
} else if (compose_status == XKB_COMPOSE_CANCELLED) {
|
||||||
|
goto maybe_repeat;
|
||||||
} else {
|
} else {
|
||||||
count = xkb_state_key_get_utf8(
|
count = xkb_state_key_get_utf8(
|
||||||
wayl->kbd.xkb_state, key, (char *)buf, sizeof(buf));
|
wayl->kbd.xkb_state, key, (char *)buf, sizeof(buf));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue