Closed Bug 1924542 Opened 3 months ago Closed 2 months ago

Manage Extensions Shortcuts should support function keys F13-F19

Categories

(Toolkit :: Add-ons Manager, enhancement, P5)

Firefox 132
enhancement

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: johndiamond, Assigned: johndiamond)

Details

(Keywords: dev-doc-needed)

Attachments

(3 files)

Steps to reproduce:

  • Open about:addons -> cog -> ManageExtensionShortcuts.
  • Select a text input to update a shortcut binding
  • Press a function key (F13, F14, ... F19)

For context I have an apple extended keyboard (https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/MQ052?wid=1200&hei=500).

Actual results:

Nothing. It is as if the keypress is not detected.

Expected results:

A binding is created for the relevant key.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: UI Events & Focus Handling' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core

(In reply to BugBot [:suhaib / :marco/ :calixte] from comment #1)

The Bugbug bot thinks this bug should belong to the 'Core::DOM: UI Events & Focus Handling' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

I have verified that these keys trigger DOM key events, so I don't think this is a DOM issue. This seems to be specific to "Manage Extension Shortcuts". The cause is probably in toolkit/modules/ShortcutUtils.sys.mjs

In retrospect a more appropriate component would probably be 'Toolkit::Add-ons Manager'

Component: DOM: UI Events & Focus Handling → Add-ons Manager
Product: Core → Toolkit
Assignee: nobody → johndiamond
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Severity: -- → N/A
Priority: -- → P5
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/8c619b8d2bc1 Support function keys up to F19 as extension shortcuts. r=rpl https://hg.mozilla.org/integration/autoland/rev/fbe1421b2911 Disallow F13-F19 when specified in the extension manifest r=willdurand https://hg.mozilla.org/integration/autoland/rev/7711a1e3e9ae Add test coverage for WebExtensions commands shortcuts using F1-F19 keys. r=willdurand
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

A short brief summary of the changes part of this bugzilla issue for the dev-docs-needed flag:

  • starting from Firefox >= 135, users will be allowed to assign to extensions commands keyboard shortcuts using the extended F13-F19 function keys
  • Using extended F13-F19 function keys as suggested keyboard shortcuts assigned by default through extension manifest is still disallowed (as it was on older Firefox versions)
  • The manifest validation error logged in Firefox >= 135 will be stating more explicitly that these keys can only be used for user-defined keyboard shortcuts (F13-F19 keys can only be used for user-defined keyboard shortcuts in about:addons "Manage Extension Shortcuts")
  • The extensions can also try to assign F13-F19 shortcuts through the browser.commands.update API method, which will reject the keys as invalid on older Firefox version but will succeed in Firefox >= 135
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: