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

@ -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;