aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-08 16:58:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-08 16:58:06 +0000
commit1b81c700f94fa4571cab088e1a2e052dc1ab0dac (patch)
tree527bc8b118103059b57b7494cdfbd79593830d99 /input.c
parentterm: add term_font_size_reset() (diff)
input: hook ctrl+{=,0} to term_font_size_reset()
Diffstat (limited to 'input.c')
-rw-r--r--input.c5
1 files changed, 5 insertions, 0 deletions
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)) {