From 1b81c700f94fa4571cab088e1a2e052dc1ab0dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 8 Feb 2020 17:58:06 +0100 Subject: [PATCH] input: hook ctrl+{=,0} to term_font_size_reset() --- input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/input.c b/input.c index bb225f0c..21fc6f37 100644 --- a/input.c +++ b/input.c @@ -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)) {