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.
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. * available since Chrome 30 * https://developer.chrome.com/extensions/commands
(get-all)
Returns all the registered extension commands for this extension and their shortcut (if active).
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [commands] where:
|commands| - https://developer.chrome.com/extensions/commands#property-callback-commands.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/commands#method-getAll.
Returns all the registered extension commands for this extension and their shortcut (if active). This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [commands] where: |commands| - https://developer.chrome.com/extensions/commands#property-callback-commands. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/commands#method-getAll.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.commands namespace.
Taps all valid non-deprecated events in chromex.ext.commands namespace.
(tap-on-command-events channel & args)
Fired when a registered command is activated using a keyboard shortcut.
Events will be put on the |channel| with signature [::on-command [command]] where:
|command| - https://developer.chrome.com/extensions/commands#property-onCommand-command.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/extensions/commands#event-onCommand.
Fired when a registered command is activated using a keyboard shortcut. Events will be put on the |channel| with signature [::on-command [command]] where: |command| - https://developer.chrome.com/extensions/commands#property-onCommand-command. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/extensions/commands#event-onCommand.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close