[Laszlo-dev] For Review: Change 20090516-bargull-GQn Summary: once more contextmenus for dhtml

André Bargull andre.bargull at udo.edu
Sun May 17 15:50:25 PDT 2009


On 5/17/2009 8:53 PM, Max Carlson wrote:
> André Bargull wrote:
>> On 5/17/2009 1:35 AM, André Bargull wrote:
>>> On 5/16/2009 9:34 PM, Max Carlson wrote:
>>>>
>>>> This only happens when LzMouseKernel.__showncontextmenu has a value 
>>>> - it's reset whenever the context menu is hidden.  Therefore, after 
>>>> the menu is hidden, a right-click causes both the browser and custom 
>>>> context menu to show up.
>>> A right-click fires first an onmouseup-event (with button=2 -> this 
>>> shows the custom contextmenu) and then an oncontextmenu-event. So it 
>>> shouldn't be possible that the contextmenu is hidden for 
>>> oncontextmenu. (I've just found out that right clicking on the custom 
>>> contextmenu shows the browser contextmenu, this needs to be fixed.)
>>
>> At least this is how it works on Windows. Is the oncontextmenu-event 
>> dispatched before or after the onmouseup-event on OSX?
> 
> In Firefox on OS X it happens in the reverse order:
> WARNING: __contextmenuEvent «MouseEvent#0| [object MouseEvent]»
> WARNING: __mouseupEvent «MouseEvent#2| [object MouseEvent]»
> 
> So, it seems we need to handle this case...
> 
> 

As explained, on Windows contextmenus are normally opened after/on the 
onmouseup-event. But I've just noticed that the FlashPlayer opens it's 
contextmenu for onmousedown! So, which way do we want to follow: Native 
contextmenu behaviour on Windows or the FlashPlayer/OSX behaviour?


More information about the Laszlo-dev mailing list