mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
search: do not emit composing keys
When we are in the composing state for XCompose key sequences, we should not add the compose component keys to the search buffer.
This commit is contained in:
parent
5ae4955e83
commit
143f220527
2 changed files with 6 additions and 1 deletions
|
|
@ -73,6 +73,10 @@
|
||||||
### Deprecated
|
### Deprecated
|
||||||
### Removed
|
### Removed
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
* Search mode: composing keys not ignored.
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
### Contributors
|
### Contributors
|
||||||
|
|
||||||
|
|
|
||||||
3
search.c
3
search.c
|
|
@ -1484,7 +1484,8 @@ search_input(struct seat *seat, struct terminal *term,
|
||||||
count = xkb_compose_state_get_utf8(
|
count = xkb_compose_state_get_utf8(
|
||||||
seat->kbd.xkb_compose_state, (char *)buf, sizeof(buf));
|
seat->kbd.xkb_compose_state, (char *)buf, sizeof(buf));
|
||||||
xkb_compose_state_reset(seat->kbd.xkb_compose_state);
|
xkb_compose_state_reset(seat->kbd.xkb_compose_state);
|
||||||
} else if (compose_status == XKB_COMPOSE_CANCELLED) {
|
} else if (compose_status == XKB_COMPOSE_CANCELLED ||
|
||||||
|
compose_status == XKB_COMPOSE_COMPOSING) {
|
||||||
count = 0;
|
count = 0;
|
||||||
} else {
|
} else {
|
||||||
count = xkb_state_key_get_utf8(
|
count = xkb_state_key_get_utf8(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue