From 11b2f30169c9760107ca4fd4dc39c6b6cbea7bdf Mon Sep 17 00:00:00 2001 From: RedBearAK <64876997+RedBearAK@users.noreply.github.com> Date: Wed, 4 May 2022 18:10:45 -0800 Subject: [PATCH] Enable Cmd+Braces page nav in Chrome(s) This should enable page nav (back/forward in page history) with Cmd+Braces in Chrome-based web browsers. Also fixes the inability to quit Chrome-based browsers with Cmd+Q. --- linux/kinto.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/linux/kinto.py b/linux/kinto.py index e7b5b0b..dbb1acc 100755 --- a/linux/kinto.py +++ b/linux/kinto.py @@ -438,9 +438,15 @@ define_keymap(re.compile("Firefox", re.IGNORECASE),{ ], K("RC-Shift-N"): K("RC-Shift-P"), # Open private window with Ctrl+Shift+N like other browsers }) + define_keymap(re.compile(chromeStr, re.IGNORECASE),{ - K("C-comma"): [K("M-e"), K("s"),K("Enter")], -}, "Browsers") + K("C-comma"): [K("M-e"), K("s"),K("Enter")], # Open preferences + K("RC-q"): K("M-F4"), # Quit Chrome(s) browsers with Cmd+Q + # K("RC-Left"): K("M-Left"), # Page nav: Back to prior page in history (conflict with wordwise) + # K("RC-Right"): K("M-Right"), # Page nav: Forward to next page in history (conflict with wordwise) + K("RC-Left_Brace"): K("M-Left"), # Page nav: Back to prior page in history + K("RC-Right_Brace"): K("M-Right"), # Page nav: Forward to next page in history +}, "Chrome Browsers") # Opera C-F12 # Keybindings for General Web Browsers