When paging, End key advances to end
authorPhilip Chimento <philip.chimento@gmail.com>
Sun, 16 Sep 2012 13:38:10 +0000 (15:38 +0200)
committerPhilip Chimento <philip.chimento@gmail.com>
Sun, 16 Sep 2012 13:38:10 +0000 (15:38 +0200)
Another way to stop paging is to press the End key.

libchimara/pager.c

index c0c76a05bf4a09cc3e822779fdd8f49fc9bc5feb..d54c777501107d459ceca7aac2e9d147f5b39fff 100644 (file)
@@ -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 */
        }