OLD | NEW |
1 <!-- BEGIN AUTHORED CONTENT --> | 1 <!-- BEGIN AUTHORED CONTENT --> |
2 <p> | 2 <p> |
3 The keybinding API allows you to add keyboard shortcuts that trigger actions in | 3 The keybinding API allows you to add keyboard shortcuts that trigger actions in |
4 your extension. An action can be opening the browser action or page action popup | 4 your extension. An action can be opening the browser action or page action popup |
5 or sending a command to the extension. | 5 or sending a command to the extension. |
6 </p> | 6 </p> |
7 <h2 id="manifest">Manifest</h2> | 7 <h2 id="manifest">Manifest</h2> |
8 <p> | 8 <p> |
9 In addition to the "experimental" permission you must declare the "keybinding" | 9 In addition to the "experimental" permission you must declare the "keybinding" |
10 permission in your extension's manifest to use this API and set manifest_version | 10 permission in your extension's manifest to use this API and set manifest_version |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 console.log('Command:', command); | 62 console.log('Command:', command); |
63 }); | 63 }); |
64 </pre> | 64 </pre> |
65 <p>The '_execute_browser_action' and '_execute_page_action' commands are | 65 <p>The '_execute_browser_action' and '_execute_page_action' commands are |
66 reserved for the action of opening your extension's popups. They won't normally | 66 reserved for the action of opening your extension's popups. They won't normally |
67 generate events that you can handle. If you need to take action based on your | 67 generate events that you can handle. If you need to take action based on your |
68 popup opening, consider listening for an 'onDomReady' event inside your popup's | 68 popup opening, consider listening for an 'onDomReady' event inside your popup's |
69 code. | 69 code. |
70 </p> | 70 </p> |
71 <!-- END AUTHORED CONTENT --> | 71 <!-- END AUTHORED CONTENT --> |
OLD | NEW |