[epiphany] Fix ALT+number captures by web pages
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix ALT+number captures by web pages
- Date: Tue, 1 Jan 2019 18:34:56 +0000 (UTC)
commit 17e3ec11d221eaa3ddcdd4647ac99e845931d5fc
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Tue Jan 1 16:00:16 2019 +0100
Fix ALT+number captures by web pages
Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/606
src/ephy-window.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index c128b9102..f9a25b0df 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -603,7 +603,17 @@ ephy_window_should_view_receive_key_press_event (EphyWindow *window,
if ((event->state & state_mask) == GDK_MOD1_MASK)
return keyval != GDK_KEY_Left && /* Back */
keyval != GDK_KEY_Right && /* Forward */
- keyval != GDK_KEY_Home; /* Homepage */
+ keyval != GDK_KEY_Home && /* Homepage */
+ keyval != GDK_KEY_1 && /* Switch To Tab 1 */
+ keyval != GDK_KEY_2 && /* Switch To Tab 2 */
+ keyval != GDK_KEY_3 && /* Switch To Tab 3 */
+ keyval != GDK_KEY_4 && /* Switch To Tab 4 */
+ keyval != GDK_KEY_5 && /* Switch To Tab 5 */
+ keyval != GDK_KEY_6 && /* Switch To Tab 6 */
+ keyval != GDK_KEY_7 && /* Switch To Tab 7 */
+ keyval != GDK_KEY_8 && /* Switch To Tab 8 */
+ keyval != GDK_KEY_9 && /* Switch To Tab 9 */
+ keyval != GDK_KEY_0; /* Switch To Tab 10 */
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]