openShortcutSettings()
Opens the browser UI that enables users to configure an extension's keyboard shortcuts.
In Firefox, this function opens the Manage Extension Shortcuts option.
Chrome doesn't support this function. In Chrome, chrome://extensions/shortcuts
can be opened using the tabs.create
function.
Syntax
js
let openedShortcutSettings = browser.commands.openShortcutSettings();
Parameters
None.
Return value
A Promise
fulfilled with no arguments if the extension shortcut management interface opens. If the request fails, the promise is rejected with an error message.
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
openShortcutSettings |
Legend
Tip: you can click/tap on a cell for more information.
- In development. Supported in a pre-release version.
- In development. Supported in a pre-release version.
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.