GNOME Bugzilla – Bug 704154
[Regression] KEY_UP behaves like PAGE_DOWN when viewing documents
Last modified: 2013-07-14 11:12:58 UTC
I have not bisected it yet, but I get an odd behaviour in master when I use the arrow keys (UP) to navigate in a document. KEY_UP has a similar behaviour than PAGE_DOWN. I would expect the document moves up, but it does the opposite.
The culprit seems to be https://git.gnome.org/browse/evince/commit/?id=660b74110d2033268eb6a5477f5ced71e0d9a355
The issue disappear with: @@ -6225,7 +6225,6 @@ ev_view_class_init (EvViewClass *class) add_scroll_binding_keypad (binding_set, GDK_KEY_Down, GDK_MOD1_MASK, GTK_SCROLL_STEP_UP, GTK_ORIENTATION_VERTICAL); add_scroll_binding_keypad (binding_set, GDK_KEY_Page_Up, 0, GTK_SCROLL_PAGE_BACKWARD, GTK_ORIENTATION_VERTICAL); add_scroll_binding_keypad (binding_set, GDK_KEY_Page_Down, 0, GTK_SCROLL_PAGE_FORWARD, GTK_ORIENTATION_VERTICAL); - add_scroll_binding_keypad (binding_set, GDK_KEY_Return, 0, GTK_SCROLL_PAGE_FORWARD, GTK_ORIENTATION_VERTICAL); add_scroll_binding_keypad (binding_set, GDK_KEY_Return, GDK_SHIFT_MASK, GTK_SCROLL_PAGE_BACKWARD, GTK_ORIENTATION_VERTICAL); gtk_binding_entry_add_signal (binding_set, GDK_KEY_H, 0, "scroll", 2, GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_BACKWARD, But, the key Return does not scroll anymore. I do not know where the actual bug is.
Debugging a little bit with gdb, it seems to me that after pressing key up the signal is emitted twice. Once with GTK_SCROLL_BACKWARD and immediately after with GTK_SCROLL_PAGE_FORWARD.
My fault, fixed in git master now.