[epiphany/gnome-3-24] ephy-window: Switch tabs with [Shift+]Ctrl+Tab



commit 8155899ec19df52990e1836363e2e2463a7f33a6
Author: George Willian Condomitti <georgecondomitti gmail com>
Date:   Mon Apr 24 19:14:15 2017 -0300

    ephy-window: Switch tabs with [Shift+]Ctrl+Tab
    
    Switch between tabs with Ctrl+Tab (next) and
    Shift+Ctrl+Tab (previous) other than Ctrl+PgDown
    and Ctrl+PgUp.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762631

 src/ephy-window.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 5da1d63..e162d35 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -116,8 +116,8 @@ const struct {
   { "toolbar.combined-stop-reload", { NULL } },
 
   /* Tabs */
-  { "tab.previous", { "<Primary>Page_Up", "<Primary>KP_9", NULL } },
-  { "tab.next", { "<Primary>Page_Down", "<Primary>KP_3", NULL } },
+  { "tab.previous", { "<Primary>Page_Up", "<Primary>KP_9", "<shift><Primary>Tab", NULL } },
+  { "tab.next", { "<Primary>Page_Down", "<Primary>KP_3", "<Primary>Tab", NULL } },
   { "tab.move-left", { "<shift><Primary>Page_Up", "<shift><Primary>Page_Up", NULL } },
   { "tab.move-right", { "<shift><Primary>Page_Down", "<shift><Primary>Page_Down", NULL } },
   { "tab.duplicate", { NULL } },
@@ -539,7 +539,9 @@ ephy_window_should_view_receive_key_press_event (EphyWindow  *window,
            keyval != GDK_KEY_Page_Up &&   /* Previous Tab */
            keyval != GDK_KEY_KP_9 &&      /* Previous Tab */
            keyval != GDK_KEY_Page_Down && /* Next Tab */
-           keyval != GDK_KEY_KP_3;        /* Next Tab */
+           keyval != GDK_KEY_KP_3 &&      /* Next Tab */
+           keyval != GDK_KEY_Tab &&       /* Next Tab */
+           keyval != GDK_KEY_ISO_Left_Tab;/* Previous Tab (Shift+Tab -> ISO Left Tab) */
 
   if ((event->state & state_mask) == (GDK_SHIFT_MASK | GDK_CONTROL_MASK))
     return keyval != GDK_KEY_n &&         /* New Incognito Window */


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