[evince] shell: Only propagate key press with control on presentation
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] shell: Only propagate key press with control on presentation
- Date: Mon, 2 Jul 2018 22:19:08 +0000 (UTC)
commit 78074fb5c412b461f0fa9ed1d51f27a7247084dd
Author: Jonas Hahnfeld <hahnjo hahnjo de>
Date: Mon Jul 2 16:45:39 2018 -0400
shell: Only propagate key press with control on presentation
Propagate only if 'event->state == 0' as implemented in
commit bed036acf breaks the key handling when NUM lock is
active.
Fixes #821
libview/ev-view-presentation.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 3450b725..4e02fbf9 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -1163,7 +1163,7 @@ 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)
+ if (event->state & GDK_CONTROL_MASK)
return gtk_bindings_activate_event (G_OBJECT (widget), event);
switch (event->keyval) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]