summaryrefslogtreecommitdiff
path: root/src/bin/keyin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/keyin.c')
-rw-r--r--src/bin/keyin.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bin/keyin.c b/src/bin/keyin.c
index d2b62fc..e50be51 100644
--- a/src/bin/keyin.c
+++ b/src/bin/keyin.c
@@ -603,6 +603,18 @@ cb_scroll_down_line(Evas_Object *termio_obj)
603 return EINA_TRUE; 603 return EINA_TRUE;
604} 604}
605 605
606static Eina_Bool
607cb_scroll_top_backlog(Evas_Object *termio_obj)
608{
609 Termpty *ty = termio_pty_get(termio_obj);
610
611 if (!ty || ty->altbuf)
612 return EINA_FALSE;
613
614 termio_scroll_top_backlog(termio_obj);
615 return EINA_TRUE;
616}
617
606 618
607static Shortcut_Action _actions[] = 619static Shortcut_Action _actions[] =
608{ 620{
@@ -611,6 +623,7 @@ static Shortcut_Action _actions[] =
611 {"one_page_down", gettext_noop("Scroll one page down"), cb_scroll_down_page}, 623 {"one_page_down", gettext_noop("Scroll one page down"), cb_scroll_down_page},
612 {"one_line_up", gettext_noop("Scroll one line up"), cb_scroll_up_line}, 624 {"one_line_up", gettext_noop("Scroll one line up"), cb_scroll_up_line},
613 {"one_line_down", gettext_noop("Scroll one line down"), cb_scroll_down_line}, 625 {"one_line_down", gettext_noop("Scroll one line down"), cb_scroll_down_line},
626 {"top_backlog", gettext_noop("Go to the top of the backlog"), cb_scroll_top_backlog},
614 627
615 {"group", gettext_noop("Copy/Paste"), NULL}, 628 {"group", gettext_noop("Copy/Paste"), NULL},
616 {"copy_primary", gettext_noop("Copy selection to Primary buffer"), cb_copy_primary}, 629 {"copy_primary", gettext_noop("Copy selection to Primary buffer"), cb_copy_primary},