Closed Bug 1766171 Opened 2 years ago Closed 2 years ago

Blocking "Override keyboard shortcuts" doesn't block overriding

Categories

(Toolkit :: Find Toolbar, defect)

Firefox 99
x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1455101

People

(Reporter: akkzilla, Unassigned)

Details

Go to any github page.
Type / intending to start a firefox search.
Instead, github pops up its own search box. So,
Tools->Page info
Choose the Permissions tab
Under "Override keyboard shortcuts", un-check "Use Default" and check Block.
Try github again: / is still overridden, even after a browser restart.

See related bug 1461533, which may be the same issue though it's for a specific, and different, website and key.

FindBar handles shortcut key with a keypress event listener so that it's out of scope of the "Override keyboard shortcuts" feature for now.
https://searchfox.org/mozilla-central/rev/13d69189a8abfc5064fe44944550b9b6eb4544f5/toolkit/actors/FindBarChild.jsm#90

Perhaps, FindBar should register keyboard shortcuts with XUL <key> and handle it something special.

Component: DOM: Events → Find Toolbar
Product: Core → Toolkit

Yes, override keyboard shortcuts is implemented by preventing keys for defined browser shortcuts being sent to the website content process, but it isn't really feasible to do this for the '/' key as it would prevent entering text.

Note that Ctrl/Cmd+F will open the findbar when Override keyboard shortcuts is used.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.