commands property
JSCommands
get
commands
Use the commands API to add keyboard shortcuts that trigger actions in your extension, for example, an action to open the browser action or send a command to the extension.
Implementation
JSCommands get commands {
var commandsNullable = this.commandsNullable;
if (commandsNullable == null) {
throw ApiNotAvailableException('chrome.commands');
}
return commandsNullable;
}