Bug 1335743 - Add modifiers field to OnClickData schema r=aswan
authorTomislav Jovanovic <tomica@gmail.com>
Thu, 09 Feb 2017 20:58:23 +0100
changeset 341856 25306fd0843955f1a93a930ee77b6a665b97053a
parent 341855 8043e0ac7edf90442c770ac8f8d653d48e2ad6bc
child 341857 58b8f3d024a2df6e540bac4110ae328b0526be76
push id37243
push userryanvm@gmail.com
push dateFri, 10 Feb 2017 17:52:33 +0000
treeherderautoland@25306fd08439 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaswan
bugs1335743
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1335743 - Add modifiers field to OnClickData schema r=aswan MozReview-Commit-ID: E5T4K5iuM6m
browser/components/extensions/schemas/context_menus.json
--- a/browser/components/extensions/schemas/context_menus.json
+++ b/browser/components/extensions/schemas/context_menus.json
@@ -98,16 +98,24 @@
             "type": "boolean",
             "optional": true,
             "description": "A flag indicating the state of a checkbox or radio item before it was clicked."
           },
           "checked": {
             "type": "boolean",
             "optional": true,
             "description": "A flag indicating the state of a checkbox or radio item after it is clicked."
+          },
+          "modifiers": {
+            "type": "array",
+            "items": {
+              "type": "string",
+              "enum": ["Shift", "Alt", "Command", "Ctrl", "MacCtrl"]
+            },
+            "description": "An array of keyboard modifiers that were held while the menu item was clicked."
           }
         }
       }
     ],
     "functions": [
       {
         "name": "create",
         "type": "function",