Re: passing keys from NPAPI plug-in to Firefox window

Benjamin Smedberg <[email protected]>
Newsgroups gmane.comp.mozilla.devel.plugins
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.