Listen for the user executing commands that you have registered using the
命令
manifest.json key
.
commands.Command
Object representing a command. This contains the information specified for the command in the
命令
manifest.json key
.
commands.getAll
Gets all registered commands for this extension.
commands.reset
Reset the given command's description and shortcut to the values given in the manifest key.
commands.update
Change the description or shortcut for the given command.
commands.onCommand
Fired when a command is executed using its associated keyboard shortcut.
BCD tables only load in the browser
注意:
This API is based on Chromium's
chrome.commands
API。
Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
最后修改: , 由 MDN 贡献者