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