Is it possible to override the Ctrl+D? I want to, for example console.log or something, and not add the links to the bookmarks.
Is it possible to override the Ctrl + D ? I want to, for
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Shortcuts can be overridden using the
chrome.commandsAPI. An extension can suggest a default shortcut (eg. Ctrl+D) in the manifest file, but users are free to override this atchrome://extensions/, as seen below:Usage
This API is still under development and only available at the Beta and Dev channels, and the Canary builds More info. It will probably available to everyone starting at Chrome 24.
If you want to test the API in Chrome 23 or lower, add the “experimental” permission to the manifest file, and use
chrome.experimental.commandsinstead ofchrome.commands. Also visitchrome://flags/and enable “Experimental Extension APIs”, or start Chrome with the--enable-experimental-extension-apisflag.manifest.jsonbackground.jsDocumentation
chrome.commandschrome.tabs(methodsqueryandexecuteScript)