mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
input: hook ctrl+{plus/KP-Add/minus/KP-Subtract} to term_font_size_{increase,decrease}
This commit is contained in:
parent
89cca2a5d1
commit
7ca8f85cd0
1 changed files with 12 additions and 0 deletions
12
input.c
12
input.c
|
|
@ -385,6 +385,18 @@ 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) {
|
||||||
|
term_font_size_increase(term);
|
||||||
|
goto maybe_repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (sym == XKB_KEY_minus || sym == XKB_KEY_KP_Subtract) {
|
||||||
|
term_font_size_decrease(term);
|
||||||
|
goto maybe_repeat;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else if (effective_mods == (shift | ctrl)) {
|
else if (effective_mods == (shift | ctrl)) {
|
||||||
if (sym == XKB_KEY_C) {
|
if (sym == XKB_KEY_C) {
|
||||||
selection_to_clipboard(term, serial);
|
selection_to_clipboard(term, serial);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue