term: reset: switch modifyOtherKeys back to level 1

This commit is contained in:
Daniel Eklöf 2023-05-12 09:42:35 +02:00
parent c13495e26e
commit 7eea69df89
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 2 additions and 0 deletions

View file

@ -63,6 +63,7 @@
* Incorrect icon in dock and window switcher on Gnome ([#1317][1317])
* Crash when scrolling after resizing the window with non-zero
scrolling regions.
* `XTMODKEYS` state not being reset on a terminal reset.
[1317]: https://codeberg.org/dnkl/foot/issues/1317

View file

@ -1933,6 +1933,7 @@ term_reset(struct terminal *term, bool hard)
term_set_user_mouse_cursor(term, NULL);
term->modify_other_keys_2 = false;
memset(term->normal.kitty_kbd.flags, 0, sizeof(term->normal.kitty_kbd.flags));
memset(term->alt.kitty_kbd.flags, 0, sizeof(term->alt.kitty_kbd.flags));
term->normal.kitty_kbd.idx = term->alt.kitty_kbd.idx = 0;