mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
input: reset modifier state on keyboard-leave
This commit is contained in:
parent
727be358df
commit
c80cbc9a79
1 changed files with 5 additions and 0 deletions
5
input.c
5
input.c
|
|
@ -151,6 +151,11 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
|||
wayl->kbd_focus = NULL;
|
||||
|
||||
stop_repeater(wayl, -1);
|
||||
wayl->kbd.shift = false;;
|
||||
wayl->kbd.alt = false;;
|
||||
wayl->kbd.ctrl = false;;
|
||||
wayl->kbd.meta = false;;
|
||||
|
||||
if (old_focused != NULL) {
|
||||
term_kbd_focus_out(old_focused);
|
||||
term_xcursor_update(old_focused);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue