We only handle key events in EvView even when it doesn't have the focus
if there is a popup window with the focus
if (!view->document)
return FALSE;
- if (!view->presentation) {
+ if (!GTK_WIDGET_HAS_FOCUS (widget)) {
/* Forward key events to current focused window child */
if (view->window_child_focus) {
GdkEventKey *new_event;
return handled;
}
- } else if (view->presentation_state == EV_PRESENTATION_END)
+
+ return FALSE;
+ }
+
+ if (!view->presentation ||
+ view->presentation_state == EV_PRESENTATION_END)
return gtk_bindings_activate_event (GTK_OBJECT (widget), event);