Open Bug 1540602 Opened 6 years ago Updated 3 years ago

Add Support for More Shortcut Keys (e.g., the slash (/) key) in the commands Manifest Key

Categories

(WebExtensions :: Frontend, enhancement, P5)

66 Branch
enhancement

Tracking

(Not tracked)

People

(Reporter: bugzilla-2, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

The commands manifest key only supports a short list of potential shortcut keys as described at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/commands#Shortcut_values.

I made an extension that uses the shortcut Ctrl+/ to duplicate tabs prior to the advent of WebExtensions and subsequently ported it to utilize WebExtension technology.

Continuing to use this shortcut has required using the |<all_urls>| |permissions| manifest key permission in conjunction with the JavaScript |addEventListener| method being called in all pages and has the side effect that the shortcut no longer works on browser pages (e.g., about: pages) where it prior to the advent WebExtensions.

Expected results:

More keyboard shortcut options should be supported so that extension authors can reduce the number of permissions required solely to enable additional such shortcuts.

Note: There are already bugs filed specifically requesting support for the semicolon (bug 1396273) and tab (bug 1364251) keys as shortcut keys.

Type: defect → enhancement
Priority: -- → P5
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: Firefox 66 → 66 Branch

The Bugbug bot thinks this bug should belong to the 'WebExtensions::Frontend' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Frontend
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.