aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/input.c b/input.c
index 26af0807..f402fa3d 100644
--- a/input.c
+++ b/input.c
@@ -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;