[epiphany/gnome-3-18] window: Add alt-left/right to key event blacklist
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-18] window: Add alt-left/right to key event blacklist
- Date: Tue, 22 Nov 2016 14:05:05 +0000 (UTC)
commit d43cb5b43f118c8b1f4b4b45b636716b9af83ac5
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 18b9bd1..33ae717 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -856,6 +856,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]