OLD | NEW |
1 <h2 id="manifest">Manifest</h2> | 1 <h2 id="manifest">Manifest</h2> |
2 <p> | 2 <p> |
3 You must have a <code>"manifest_version"</code> of at least <code>2</code> to us
e this API. | 3 You must have a <code>"manifest_version"</code> of at least <code>2</code> to us
e this API. |
4 </p> | 4 </p> |
5 | 5 |
6 {{?is_apps +partials.warning_dev /}} | 6 {{?is_apps +partials.warning_dev /}} |
7 | 7 |
8 <h2 id="usage">Usage</h2> | 8 <h2 id="usage">Usage</h2> |
9 <p>The commands API allows you to define specific commands, and bind them to a | 9 <p>The commands API allows you to define specific commands, and bind them to a |
10 default key combination. Each command your extension accepts must be listed in | 10 default key combination. Each command your extension accepts must be listed in |
11 the manifest as an attribute of the 'commands' manifest key. An extension can | 11 the manifest as an attribute of the 'commands' manifest key. An extension can |
12 have many commands but only 4 suggested keys can be specified. The user can | 12 have many commands but only 4 suggested keys can be specified. The user can |
13 manually add more shortcuts from the chrome://extensions page.</p> | 13 manually add more shortcuts from the chrome://extensions/configureCommands |
| 14 dialog.</p> |
14 | 15 |
15 <p>Supported keys: A-Z, 0-9, Comma, Period, Home, End, PageUp, PageDown, Insert, | 16 <p>Supported keys: A-Z, 0-9, Comma, Period, Home, End, PageUp, PageDown, Insert, |
16 Delete, Arrow keys (Up, Down, Left, Right) and the Media Keys | 17 Delete, Arrow keys (Up, Down, Left, Right) and the Media Keys |
17 (MediaNextTrack, MediaPlayPause, MediaPrevTrack, MediaStop).</p> | 18 (MediaNextTrack, MediaPlayPause, MediaPrevTrack, MediaStop).</p> |
18 | 19 |
19 <p>Note: All key combinations must include either Ctrl* or Alt. Combinations | 20 <p>Note: All key combinations must include either Ctrl* or Alt. Combinations |
20 that involve Ctrl+Alt are not permitted in order to avoid conflicts with the | 21 that involve Ctrl+Alt are not permitted in order to avoid conflicts with the |
21 AltGr key. Shift can be used in addition to Alt or Ctrl, but is not required. | 22 AltGr key. Shift can be used in addition to Alt or Ctrl, but is not required. |
22 Modifiers (such as Ctrl) can not be used in combination with the Media Keys. | 23 Modifiers (such as Ctrl) can not be used in combination with the Media Keys. |
23 Tab key was removed from list of supported keys in Chrome version 33 and above | 24 Tab key was removed from list of supported keys in Chrome version 33 and above |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 "toggle-feature-foo": { | 102 "toggle-feature-foo": { |
102 "suggested_key": { | 103 "suggested_key": { |
103 "default": "Ctrl+Shift+5" | 104 "default": "Ctrl+Shift+5" |
104 }, | 105 }, |
105 "description": "Toggle feature foo", | 106 "description": "Toggle feature foo", |
106 <b>"global": true</b> | 107 <b>"global": true</b> |
107 } | 108 } |
108 }, | 109 }, |
109 ... | 110 ... |
110 }</pre> | 111 }</pre> |
OLD | NEW |