mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
input: regression: special keys don’t reset view and cancel selection
This fixes an issue where e.g. holding down ctrl would cancel the selection, thus making it impossible to copy text to the clipboard.
This commit is contained in:
parent
4334259c70
commit
a55a3daae7
1 changed files with 4 additions and 2 deletions
6
input.c
6
input.c
|
|
@ -1594,8 +1594,10 @@ key_press_release(struct seat *seat, struct terminal *term, uint32_t serial,
|
||||||
if (utf8 != buf)
|
if (utf8 != buf)
|
||||||
free(utf8);
|
free(utf8);
|
||||||
|
|
||||||
term_reset_view(term);
|
if (count > 0) {
|
||||||
selection_cancel(term);
|
term_reset_view(term);
|
||||||
|
selection_cancel(term);
|
||||||
|
}
|
||||||
|
|
||||||
maybe_repeat:
|
maybe_repeat:
|
||||||
clock_gettime(
|
clock_gettime(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue