Build an extension that has a content script and put in the content script document.addEveneListener("keypress",somethingHappens) function somethingHappens(e) { alert(e.keyCode) // add stuff }
You can also try "keydown" or "keyup". ☆PhistucK On Sat, Dec 12, 2009 at 05:48, vrienduinen <jon.van.dui...@gmail.com> wrote: > Spacebar toggles pause play at lala.com. > Anyone able to tell me how to send a keystroke to a tab with an > extension. > It would be best if it just happens in the background. There is a FF > extension that does this, but it uses a key setting that I don't think > will work in chrome. > > -- > > You received this message because you are subscribed to the Google Groups > "Chromium-extensions" group. > To post to this group, send email to chromium-extensi...@googlegroups.com. > To unsubscribe from this group, send email to > chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/chromium-extensions?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.