[epiphany/gnome-3-22] window: Add alt-left/right to key event blacklist



commit 5712d1ce3f3dddf7c6a317d7b3c8a6eb9725d948
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Nov 22 07:53:32 2016 -0600

    window: Add alt-left/right to key event blacklist
    
    Seems WebKit always handles these key combinations, breaking our
    back/forward shortcuts.

 src/ephy-window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 12aa9d4..244564c 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -816,6 +816,10 @@ should_web_view_receive_key_press_event (GdkEventKey *event)
            event->keyval != GDK_KEY_Page_Down &&
            event->keyval != GDK_KEY_KP_3;
 
+  if (event->state == GDK_MOD1_MASK)
+    return event->keyval != GDK_KEY_Left &&
+           event->keyval != GDK_KEY_Right;
+
   return TRUE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]