1

On macOS, Firefox uses the control key for each of the keyboard shortcuts in the "Find in Page…" bar. For example, Highlight All is currently toggled by Control-I, Match Case is Control-C, Match Diacritics is Control-I, and Whole Words is Control-W. Unfortunately, this conflicts with my Cocoa text system key binding (DefaultKeyBinding.dict) used in text views on macOS to delete the previous word.

{
    "^w" = "deleteWordBackward:";
}

Is there a way to change this shortcut so I can use Control-W to delete the previous word in the find bar?

1 Answers1

1

This is possible via the ui.key.chromeAccess preference in about:config or user.js. For example, to change the prefix to Control-Command, use:

user_pref("ui.key.chromeAccess", 10);

To disable it entirely, you can add the following to an AutoConfig file after the DOMContentLoaded event:

document.querySelector(".findbar-entire-word")?.removeAttribute("accesskey");

See this thread for more details.