From 2bc96722e6c7079bebdee436490bd02a069d340c Mon Sep 17 00:00:00 2001 From: David Yu Yang Date: Sun, 24 Oct 2021 22:46:41 +0800 Subject: [PATCH] Provide both old and new next/prev tab shortcuts --- guake/data/org.guake.gschema.xml | 14 ++++++++++++-- guake/keybindings.py | 2 ++ guake/prefs.py | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/guake/data/org.guake.gschema.xml b/guake/data/org.guake.gschema.xml index ace6c1030..c1a050bce 100644 --- a/guake/data/org.guake.gschema.xml +++ b/guake/data/org.guake.gschema.xml @@ -424,15 +424,25 @@ Move the current tab to the right - '<Control><Shift>Tab' + '<Control>Page_Up' Previous tab. Shows the previous tab. - '<Control>Tab' + '<Control>Page_Down' Next tab. Shows the next tab. + + '<Control><Shift>Tab' + Previous tab (alternative) + Alternate shortcut to show the previous tab. + + + '<Control>Tab' + Next tab (alternative) + Alternate shortcut to show the next tab. + '<Control>F1' First tab. diff --git a/guake/keybindings.py b/guake/keybindings.py index c81ed9f05..b2c1153d2 100644 --- a/guake/keybindings.py +++ b/guake/keybindings.py @@ -69,7 +69,9 @@ def x(*args): ("close-tab", x), ("rename-current-tab", self.guake.accel_rename_current_tab), ("previous-tab", self.guake.accel_prev), + ("previous-tab-alt", self.guake.accel_prev), ("next-tab", self.guake.accel_next), + ("next-tab-alt", self.guake.accel_next), ("clipboard-copy", self.guake.accel_copy_clipboard), ("clipboard-paste", self.guake.accel_paste_clipboard), ("quit", self.guake.accel_quit), diff --git a/guake/prefs.py b/guake/prefs.py index 4d9b7fb24..7e3e3d92d 100644 --- a/guake/prefs.py +++ b/guake/prefs.py @@ -141,7 +141,9 @@ "key": "nav", "keys": [ {"key": "previous-tab", "label": _("Go to previous tab")}, + {"key": "previous-tab-alt", "label": _("Go to previous tab (alternative)")}, {"key": "next-tab", "label": _("Go to next tab")}, + {"key": "next-tab-alt", "label": _("Go to next tab (alternative)")}, {"key": "move-tab-left", "label": _("Move current tab left")}, {"key": "move-tab-right", "label": _("Move current tab right")}, {"key": "switch-tab1", "label": _("Go to first tab")},