config/input: add scrollback-home|end key bindings (unbound by default)

This commit is contained in:
Daniel Eklöf 2022-02-23 19:03:54 +01:00
parent cb43c58150
commit f869ca4546
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 26 additions and 0 deletions

14
input.c
View file

@ -134,6 +134,20 @@ execute_binding(struct seat *seat, struct terminal *term,
}
break;
case BIND_ACTION_SCROLLBACK_HOME:
if (term->grid == &term->normal) {
cmd_scrollback_up(term, term->grid->num_rows);
return true;
}
break;
case BIND_ACTION_SCROLLBACK_END:
if (term->grid == &term->normal) {
cmd_scrollback_down(term, term->grid->num_rows);
return true;
}
break;
case BIND_ACTION_CLIPBOARD_COPY:
selection_to_clipboard(seat, term, serial);
return true;