Re: XUL panel steals input events
Patrick Brosset <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
Hi Neil, Yes that's right, I was referring to the behavior when closing the popup by clicking outside. In the firefox DevTools, I'm adding image previews to when you mouseover a tag in the markup inspector. But normally, when you click on a tag, it selects it. After I had added the panels on mouseover/out in there, and when one of them was displayed, clicking on the tag no longer selected it, I needed two click, as the first was consumed. I just tried that consumeoutsideclicks attribute, I didn't know about it before, and it seems to do the trick really nicely! Thanks On 9/27/13 3:43 PM, Neil Deakin wrote: > 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. >