From 1f4b2bb45121e6d5c3dc12dd74ecc79b890bf25e Mon Sep 17 00:00:00 2001 From: RedBearAK <64876997+RedBearAK@users.noreply.github.com> Date: Sun, 27 Jun 2021 17:03:35 -0800 Subject: [PATCH] Add Cmd+Opt+Left/Right for browser tab navigation Adding mapping to enable Cmd+Opt+Left/Right to supplement Ctrl+PgUp/PgDn for browser tab navigation. Shortcut is verified by testing to work on Firefox, Google Chrome and Opera in macOS, so it should be suitable for inclusion in Kinto. Included are some line changes from PR #487, which should close that PR if this is merged. --- linux/kinto.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/linux/kinto.py b/linux/kinto.py index 44ba676..2cf9b21 100755 --- a/linux/kinto.py +++ b/linux/kinto.py @@ -394,7 +394,7 @@ define_keymap(re.compile(filemanagerStr, re.IGNORECASE),{ ### END OF FILE MANAGER GROUP OF KEYMAPS ### ############################################ -# Keybindings for Browsers +# Keybindings for General Web Browsers define_keymap(re.compile(browserStr, re.IGNORECASE),{ K("RC-Q"): K("RC-Q"), # Close all browsers Instances K("M-RC-I"): K("RC-Shift-I"), # Dev tools @@ -408,9 +408,15 @@ define_keymap(re.compile(browserStr, re.IGNORECASE),{ K("RC-Key_7"): K("M-Key_7"), K("RC-Key_8"): K("M-Key_8"), K("RC-Key_9"): K("M-Key_9"), # Jump to last tab - K("C-Left_Brace"): K("C-Page_Up"), - K("C-Right_Brace"): K("C-Page_Down"), -}) + K("RC-M-Left"): K("C-Page_Up"), # Go to prior tab + K("RC-M-Right"): K("C-Page_Down"), # Go to next tab + K("Super-Page_Up"): K("C-Page_Up"), # Go to prior tab + K("Super-Page_Down"): K("C-Page_Down"), # Go to next tab + # Use brace keys for tab navigation instead of page navigation + # K("C-Left_Brace"): K("C-Page_Up"), + # K("C-Right_Brace"): K("C-Page_Down"), +}, "General Web Browsers") + # Open preferences in browsers define_keymap(re.compile("Firefox", re.IGNORECASE),{