[evince] ev-view-presentation: Propagate unhandled key events
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] ev-view-presentation: Propagate unhandled key events
- Date: Mon, 17 Mar 2014 12:41:00 +0000 (UTC)
commit bed036acf9bccac9a13a4b019381f0b69169b9d2
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Mon Mar 17 13:38:28 2014 +0100
ev-view-presentation: Propagate unhandled key events
This was preventing shortcuts like CTRL+w from working.
https://bugzilla.gnome.org/show_bug.cgi?id=604834
libview/ev-view-presentation.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 7c227f6..7707b7c 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -1114,6 +1114,9 @@ ev_view_presentation_key_press_event (GtkWidget *widget,
if (pview->state == EV_PRESENTATION_END)
return gtk_bindings_activate_event (G_OBJECT (widget), event);
+ if (event->state != 0)
+ return gtk_bindings_activate_event (G_OBJECT (widget), event);
+
switch (event->keyval) {
case GDK_KEY_b:
case GDK_KEY_B:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]