]> gitweb.michael.orlitzky.com - firefox-user-prefs.git/commitdiff
ui: prevent websites from hijacking keyboard shortcuts.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 19 May 2023 18:36:40 +0000 (14:36 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 19 May 2023 18:36:40 +0000 (14:36 -0400)
ui

diff --git a/ui b/ui
index c2a1f5fdca33c4843be7f653d92eb763921d52df..78ba578601a2605fce5cf969bf173aed92126f72 100644 (file)
--- 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);