ion": "The name of the shortcut." }, "newShortcut": { "type": "string", "description": "The new shortcut active for this command, or blank if not active." }, "oldShortcut": { "type": "string", "description": "The old shortcut which is no longer active for this command, or blank if the shortcut was previously inactive." } } } ] } ], "functions": [ { "name": "update", "type": "function", "async": true, "description": "Update the details of an already defined command.", "parameters": [ { "type": "object", "name": "detail", "description": "The new description for the command.", "properties": { "name": { "type": "string", "description": "The name of the command." }, "description": { "type": "string", "optional": true, "description": "The new description for the command." }, "shortcut": { "type": "string", "format": "manifestShortcutKeyOrEmpty", "optional": true } } } ] }, { "name": "reset", "type": "function", "async": true, "description": "Reset a command's details to what is specified in the manifest.", "parameters": [ { "type": "string", "name": "name", "description": "The name of the command." } ] }, { "name": "getAll", "type": "function", "async": "callback", "description": "Returns all the registered extension commands for this extension and their shortcut (if active).", "parameters": [ { "type": "function", "name": "callback", "optional": true, "parameters": [ { "name": "commands", "type": "array", "items": { "$ref": "Command" } } ], "description": "Called to return the registered commands." } ] }, { "name": "openShortcutSettings", "type": "function", "async": true, "description": "Open extension shortcuts configuration page.", "parameters": [] } ] } ] PK