From 8716430450b551d9a170dbd6d79ed0ebfbb364e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 10 Feb 2020 21:57:55 +0100 Subject: [PATCH] input: ctrl+= increases font size, not resets it --- README.md | 4 ++-- doc/foot.1.scd | 4 ++-- input.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 30b956ec..cbf2ffb6 100644 --- a/README.md +++ b/README.md @@ -106,13 +106,13 @@ is **not** possible to define new key bindings. ctrl+shift+r : Start a scrollback search -ctrl++ +ctrl++, ctrl+= : Increase font size by 1pt ctrl+- : Decrease font size by 1pt -ctrl+0, ctrl+= +ctrl+0 : Reset font size diff --git a/doc/foot.1.scd b/doc/foot.1.scd index 313579fe..639ddf19 100644 --- a/doc/foot.1.scd +++ b/doc/foot.1.scd @@ -112,13 +112,13 @@ be changed. *ctrl*+*shift*+*r* Start a scrollback search -*ctrl*+*+* +*ctrl*+*+*, *ctrl*+*=* Increase font size by 1pt *ctrl*+*-* Decrease font size by 1pt -*ctrl*+*0*, *ctrl*+*=* +*ctrl*+*0* Reset font size ## SCROLLBACK SEARCH diff --git a/input.c b/input.c index 21fc6f37..77355918 100644 --- a/input.c +++ b/input.c @@ -386,7 +386,7 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, } else if (effective_mods == ctrl) { - if (sym == XKB_KEY_plus || sym == XKB_KEY_KP_Add) { + if (sym == XKB_KEY_equal || sym == XKB_KEY_plus || sym == XKB_KEY_KP_Add) { term_font_size_increase(term); goto maybe_repeat; } @@ -396,7 +396,7 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, goto maybe_repeat; } - else if (sym == XKB_KEY_0 || sym == XKB_KEY_equal || sym == XKB_KEY_KP_Equal || sym == XKB_KEY_KP_0) { + else if (sym == XKB_KEY_0 || sym == XKB_KEY_KP_Equal || sym == XKB_KEY_KP_0) { term_font_size_reset(term); goto maybe_repeat; }