From: Wouter Bolsterlee Date: Wed, 13 Dec 2006 21:47:12 +0000 (+0000) Subject: Correctly propagate key press event so that up/down keys work as expected X-Git-Tag: EVINCE_0_7_0~21 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=9f90bbb7a2b8d853b72bb2e0f06a7a9666c4389d;p=evince.git Correctly propagate key press event so that up/down keys work as expected 2006-12-13 Wouter Bolsterlee * shell/ev-view.c: (ev_view_key_press_event): Correctly propagate key press event so that up/down keys work as expected (correct behaviour was broken by black/white screen key bindings for presentations). --- diff --git a/ChangeLog b/ChangeLog index 31f8fee9..22cd788d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-12-13 Wouter Bolsterlee + + * shell/ev-view.c: (ev_view_key_press_event): + + Correctly propagate key press event so that up/down keys + work as expected (correct behaviour was broken by + black/white screen key bindings for presentations). + 2006-12-13 Carlos Garcia Campos * pdf/ev-poppler.cc: (pdf_document_find_get_n_results), diff --git a/shell/ev-view.c b/shell/ev-view.c index 9a37136c..22e6270d 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -2185,7 +2185,8 @@ ev_view_key_press_event (GtkWidget *widget, if (!view->presentation || view->presentation_state == EV_PRESENTATION_END) - return FALSE; + return gtk_bindings_activate_event (GTK_OBJECT (widget), event); + current = view->presentation_state; @@ -2210,7 +2211,7 @@ ev_view_key_press_event (GtkWidget *widget, } if (current == view->presentation_state) - return FALSE; + return gtk_bindings_activate_event (GTK_OBJECT (widget), event); switch (view->presentation_state) { case EV_PRESENTATION_NORMAL: @@ -2223,7 +2224,7 @@ ev_view_key_press_event (GtkWidget *widget, &widget->style->white); break; default: - return FALSE; + return gtk_bindings_activate_event (GTK_OBJECT (widget), event); } gtk_widget_queue_draw (widget);