From: Philip Chimento Date: Sun, 16 Sep 2012 13:38:10 +0000 (+0200) Subject: When paging, End key advances to end X-Git-Tag: v0.9~5^2~2 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=d18f72aa887ce1568b1acb21e3a4dc25fe8c1319;p=projects%2Fchimara%2Fchimara.git When paging, End key advances to end Another way to stop paging is to press the End key. --- diff --git a/libchimara/pager.c b/libchimara/pager.c index c0c76a0..d54c777 100644 --- a/libchimara/pager.c +++ b/libchimara/pager.c @@ -103,6 +103,9 @@ pager_on_key_press_event(GtkTextView *textview, GdkEventKey *event, winid_t win) case GDK_KEY_Page_Up: case GDK_KEY_KP_Page_Up: gtk_adjustment_set_value(adj, CLAMP(value - page_size, lower, upper - page_size)); return TRUE; + case GDK_KEY_End: case GDK_KEY_KP_End: + gtk_adjustment_set_value(adj, upper); + return TRUE; /* don't handle "up" and "down", they're used for input history */ }