[epiphany] ephy-window: Switch tabs with [Shift+]Ctrl+Tab
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-window: Switch tabs with [Shift+]Ctrl+Tab
- Date: Thu, 18 May 2017 15:28:43 +0000 (UTC)
commit b07d37ff973d24ffebef38cd24f01bdda0f4d439
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 2ee4830..a5f6092 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -117,8 +117,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 } },
@@ -540,7 +540,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]