From d21ccb822725bc469d452802ef74d36eee5547cf Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 19 May 2023 14:36:40 -0400 Subject: [PATCH] ui: prevent websites from hijacking keyboard shortcuts. --- ui | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ui b/ui index c2a1f5f..78ba578 100644 --- a/ui +++ b/ui @@ -43,3 +43,16 @@ user_pref("network.IDN_show_punycode", true); * */ user_pref("browser.download.start_downloads_in_tmp_dir", true); + + +/* Disallow hotkey hijacking by default. + * + * When I hit Ctrl-K or Ctrl-L, I want that to be sent to the browser + * and not to (for example) Github. + * + * References: + * + * 1. https://support.mozilla.org/en-US/questions/1241294 + * + */ +user_pref("permissions.default.shortcuts", 2); -- 2.44.2