mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
input: ctrl+= increases font size, not resets it
This commit is contained in:
parent
4a169f5643
commit
8716430450
3 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
4
input.c
4
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue