input: ctrl+= increases font size, not resets it

This commit is contained in:
Daniel Eklöf 2020-02-10 21:57:55 +01:00
parent 4a169f5643
commit 8716430450
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 6 additions and 6 deletions

View file

@ -106,13 +106,13 @@ is **not** possible to define new key bindings.
<kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>r</kbd>
: Start a scrollback search
<kbd>ctrl</kbd>+<kbd>+</kbd>
<kbd>ctrl</kbd>+<kbd>+</kbd>, <kbd>ctrl</kbd>+<kbd>=</kbd>
: Increase font size by 1pt
<kbd>ctrl</kbd>+<kbd>-</kbd>
: Decrease font size by 1pt
<kbd>ctrl</kbd>+<kbd>0</kbd>, <kbd>ctrl</kbd>+<kbd>=</kbd>
<kbd>ctrl</kbd>+<kbd>0</kbd>
: Reset font size

View file

@ -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

View file

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