Skip to content

Commit

Permalink
Update commands page
Browse files Browse the repository at this point in the history
  • Loading branch information
jobisoft committed Feb 20, 2021
1 parent b87a57e commit fd0cc7b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,20 @@ Manifest file properties
:name: [``commands``]
:type: (object)

Object defining one or more commands as key-value pairs, the key being the name of the command and the value being a :ref:`commands.CommandsShortcut`. The key may also be one of the built-in special shortcuts ``_execute_browser_action``, ``_execute_compose_action`` or ``_execute_message_display_action``. Example:
Object defining one or more commands as key-value pairs, the key being the name of the command and the value being a :ref:`commands.CommandsShortcut`. The key may also be one of the following built-in special shortcuts:

* ``_execute_browser_action``

* ``_execute_compose_action``

* ``_execute_message_display_action``

Example:

.. literalinclude:: includes/commands/manifest.json
:language: JSON

.


.. rst-class:: api-permission-info

Expand Down
2 changes: 1 addition & 1 deletion overlay/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"$extend": "WebExtensionManifest",
"properties": {
"commands": {
"description" : "Object defining one or more commands as key-value pairs, the key being the name of the command and the value being a :ref:`commands.CommandsShortcut`. The key may also be one of the built-in special shortcuts ``_execute_browser_action``, ``_execute_compose_action`` or ``_execute_message_display_action``. Example: <literalinclude>includes/commands/manifest.json<lang>JSON</lang></literalinclude>."
"description" : "Object defining one or more commands as key-value pairs, the key being the name of the command and the value being a :ref:`commands.CommandsShortcut`. The key may also be one of the following built-in special shortcuts: \n * ``_execute_browser_action`` \n * ``_execute_compose_action`` \n * ``_execute_message_display_action``\nExample: <literalinclude>includes/commands/manifest.json<lang>JSON</lang></literalinclude>"
}
}
}
Expand Down

0 comments on commit fd0cc7b

Please sign in to comment.