diff options
author | George Willian Condomitti <georgecondomitti@gmail.com> | 2017-04-24 19:14:15 -0300 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-05-20 09:25:52 -0500 |
commit | 8155899ec19df52990e1836363e2e2463a7f33a6 (patch) | |
tree | 26687b06242c3a6ea4c0c1deeb4301cf632d8989 | |
parent | 03cc1be2f472c092d66f63689ddf81ba74b91906 (diff) | |
download | epiphany-8155899ec19df52990e1836363e2e2463a7f33a6.tar.gz |
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
-rw-r--r-- | 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 5da1d63f6..e162d35e8 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 */ |