Re: XUL panel steals input events

Neil Deakin <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
On 2013-09-27 5:53 AM, Patrick Brosset wrote:
> Hi,
>
> I'm currently working on adding a set of preview tooltips to our firefox
> devtools (previewing images, CSS gradients, colors, etc ...) and I'm
> making use of XUL panels for this (specifically arrow type panels) cause
> they are nice and consistent with the rest of the Firefox UI (for
> instance with the download list top right).
>
> One problem I'm facing now is that even with the noautofocus attribute
> set to true, when my panel appears (after I called openPopup(anchor)),
> the panel seems to be stealing my click events.
> In fact, I then need to click twice instead of just once on the
> underlying anchor element to focus it.
>

Could you be clearer about what you mean here? The focus only affects 
key events.

Are you referring to the behaviour when closing the popup by clicking 
outside of it, the mouseevent gets ignored? You can change that (with 
the consumeoutsideclicks attribute) but you shouldn't do so unless you 
know why you need to.
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.