Re-assigning to Ctrl+Page Up/Page Down executes shortcut
Categories
(WebExtensions :: Frontend, defect, P2)
Tracking
(firefox65 wontfix, firefox66 wontfix, firefox67 verified)
People
(Reporter: freaktechnik, Assigned: mstriemer)
References
Details
Attachments
(2 files)
Steps to reproduce:
- Go to new extensions shortcut reassigning UI (Manage Extension Shortcuts) from bug 1303384
- Select a command to re-assign
- Assign "Ctrl + Page Up"
Expected result:
Error is shown that a built-in command can not be used.
Actual result:
The tab is switched (that's the action of "Ctrl + Page Up/Page Down", at least on Linux) and the command is seemingly assigned that shortcut without any error message being shown.
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
I'm curious how that shortcut is registered, but it would be nice to handle this. Provided there are <key>s registered for them it should be fixable, but I would've expected this to work as expected if that's the case.
Assignee | ||
Comment 2•6 years ago
|
||
Perhaps it's not checking the "Page Up" key the right way.
Reporter | ||
Comment 3•6 years ago
|
||
Handlers are here: https://searchfox.org/mozilla-central/rev/dac799c9f4e9f5f05c1071cba94f2522aa31f7eb/browser/base/content/tabbrowser.js#4195-4206
Bug 1008772 may be a reason why this is not working properly.
Assignee | ||
Comment 4•6 years ago
|
||
That looks like the issue, thanks. It appears as though there is also a Ctrl+F4 shortcut to close the selected tab(s) when not on Mac that would need to be handled.
Updated•6 years ago
|
Note: Yes, Ctrl+F4 was reported here
Assignee | ||
Comment 6•6 years ago
|
||
This centralizes the checks for system shortcuts into ShortcutUtils.jsm, so
they can be checked for in the add-on shortcut assignment UI. It also
introduces a mechanism for skipping the system event handler if it is already
being handled by the shortcuts UI.
Updated•6 years ago
|
Comment 8•6 years ago
|
||
bugherder |
Updated•6 years ago
|
This issue is verified as fixed on Firefox 67.0a1 (20190314214219) under Win 7 64-bit and Mac OS X 10.12.6.
"Ctrl + Page Up/Page Down" can’t be assigned and the “Can’t override a Nightly shortcut” label is displayed.
Please see the attached screenshot.
Description
•