input: hook ctrl+{=,0} to term_font_size_reset()

This commit is contained in:
Daniel Eklöf 2020-02-08 17:58:06 +01:00
parent 6c0d00fcee
commit 1b81c700f9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -395,6 +395,11 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
term_font_size_decrease(term);
goto maybe_repeat;
}
else if (sym == XKB_KEY_0 || sym == XKB_KEY_equal || sym == XKB_KEY_KP_Equal || sym == XKB_KEY_KP_0) {
term_font_size_reset(term);
goto maybe_repeat;
}
}
else if (effective_mods == (shift | ctrl)) {