summaryrefslogtreecommitdiff
path: root/src/bin/keyin.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-06-01 19:56:45 +0200
committerBoris Faure <billiob@gmail.com>2016-06-01 19:56:45 +0200
commit9e80988f5a24afbf58e7cc5330d6d6a325c126f5 (patch)
tree15d87320fd9a88fe37465b31d0332c65d0b7981d /src/bin/keyin.c
parent7d09373c5652abeb23b3a468d4218f11c8a789b2 (diff)
keys: add Shift+End to reset scroll. Closes T3582
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 e50be51..f5e6d3e 100644
--- a/src/bin/keyin.c
+++ b/src/bin/keyin.c
@@ -615,6 +615,18 @@ cb_scroll_top_backlog(Evas_Object *termio_obj)
615 return EINA_TRUE; 615 return EINA_TRUE;
616} 616}
617 617
618static Eina_Bool
619cb_scroll_reset(Evas_Object *termio_obj)
620{
621 Termpty *ty = termio_pty_get(termio_obj);
622
623 if (!ty || ty->altbuf)
624 return EINA_FALSE;
625
626 termio_scroll_set(termio_obj, 0);
627 return EINA_TRUE;
628}
629
618 630
619static Shortcut_Action _actions[] = 631static Shortcut_Action _actions[] =
620{ 632{
@@ -624,6 +636,7 @@ static Shortcut_Action _actions[] =
624 {"one_line_up", gettext_noop("Scroll one line up"), cb_scroll_up_line}, 636 {"one_line_up", gettext_noop("Scroll one line up"), cb_scroll_up_line},
625 {"one_line_down", gettext_noop("Scroll one line down"), cb_scroll_down_line}, 637 {"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}, 638 {"top_backlog", gettext_noop("Go to the top of the backlog"), cb_scroll_top_backlog},
639 {"reset_scroll", gettext_noop("Reset scroll"), cb_scroll_reset},
627 640
628 {"group", gettext_noop("Copy/Paste"), NULL}, 641 {"group", gettext_noop("Copy/Paste"), NULL},
629 {"copy_primary", gettext_noop("Copy selection to Primary buffer"), cb_copy_primary}, 642 {"copy_primary", gettext_noop("Copy selection to Primary buffer"), cb_copy_primary},