Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to assign custom (own) hotkey on any Google chrome extension? Looking for in-box or 3-rd party solution.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Look at the bottom of you extensions page, in newer versions (It's here in dev/canary for now, don't know about beta/release. Soon to be in release, I'm sure) there is a link 'Configure commands' to keyboard shortcuts options for main extension action (the one it performs when you click on extension button on Chrome toolbar)

share|improve this answer
    
Wow! Great!!! Thanks a lot ... –  FoxyBOA Oct 7 '12 at 5:45
add comment

Yes, you can. You need the following:

  1. The extension ID of your extension.
  2. A program to script the hotkey with (AutoHotkey for Windows, Keyboard Maestro for Mac or Autokey for Linux).
  3. The script needs to open a link to your extension such as chrome-extension://iinhokidgfoomcighckbjmlcndbjmomp/options.html

You'll find the ID of your desired chrome extension in the Webstore - e.g. https://chrome.google.com/webstore/detail/mgjjeipcdnnjhgodgjpfkffcejoljijf?hl=en

An AutoHotkey script for a hotkey like this would be:

F5:: ; Hotkey is F5 here
SendInput ^t ; open new tab
SendInput chrome-extension://iinhokidgfoomcighckbjmlcndbjmomp/options.html ; write the extension's address
SendInput {enter} ; press enter to confirm.
Return

I have toyed with the Shortcuts Manager extension to create a JavaScript command to open the extension, but my knowledge of JS is very limited and I was unsuccessful. I'll post an example code in a comment to this answer.

share|improve this answer
    
Here's an example of what I have tried: chrome.tabs.create({"url": "chrome-extension://iinhokidgfoomcighckbjmlcndbjmomp/options.html"}); –  user 99572 is fine Nov 4 '11 at 14:06
    
It'd be nice to receive some feedback on this. –  user 99572 is fine Nov 8 '11 at 12:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.