projects
/
projects
/
chimara
/
chimara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d04702
)
When paging, End key advances to end
author
Philip Chimento
<philip.chimento@gmail.com>
Sun, 16 Sep 2012 13:38:10 +0000
(15:38 +0200)
committer
Philip 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
patch
|
blob
|
history
diff --git
a/libchimara/pager.c
b/libchimara/pager.c
index c0c76a05bf4a09cc3e822779fdd8f49fc9bc5feb..d54c777501107d459ceca7aac2e9d147f5b39fff 100644
(file)
--- 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 */
}