Commit 8155899e authored by George Willian Condomitti's avatar George Willian Condomitti Committed by Michael Catanzaro

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
parent 03cc1be2
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment