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



commit 37e657bb8925df5648c57566c1fc1629cdebe5b9
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 b52a262..9db23d3 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -552,6 +552,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]