Re: passing keys from NPAPI plug-in to Firefox window
jaitirth shirole <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.plugins |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <8652191d-3326-4e5f-ba93-7c51ff8fc487@k28g2000yqn.googlegroups.com> |
On Jan 24, 7:33 pm, Benjamin Smedberg <[email protected]> wrote: > On 1/24/12 6:45 AM, jaitirth shirole wrote:> In our NPAPI plug-in, we get some keystrokes when in focus, but > > certain browser specific key strokes e.g. Ctrl+T, Ctrl+B (and others), > > we want to pass on to the browser window. > > Posting the key messages to top level browser window doesn't seem to > > help :( > > Is this a windowed or windowless plugin? > > Windowless plugin mode is preferred in all cases, and I strongly suggest > that you switch to windowless mode if possible. > > In windowless mode, you think you should simply return false from > NPP_HandleEvent for the key events which you are not relevant to your > plugin... I recommend doing this for all Ctrl-Key events which you > aren't specifically trying to use. > > --BDS Hi Ben, This is a windowed plug-in! Thanks, Jai.