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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
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