christmo / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

SourceListContextMenuProvider never called on Windows #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The SourceListContextMenuProvider is never being called on Windows.

Original issue reported on code.google.com by kenneth....@gmail.com on 4 Dec 2008 at 9:01

GoogleCodeExporter commented 8 years ago
I was relying on the isPopupTrigger method of MouseEvent, but was only checking 
this in the 
MouseEvent.mousePressed implementation, which is always false on Windows. 

The more interesting question here is, should the behavior be the same across 
platforms mimicing the Mac 
behavior, or should it be platform specific. It's actually easier to have it be 
platform specific, as we can then rely 
on the isPopupMenu trigger. I'm unaware how to take the mouse button state out 
of the equation. It is not a 
trivial task to determine the isPopupTrigger flag - on the mac alone it can 
involve keystrokes (like the Command 
key).

Original comment by kenneth....@gmail.com on 4 Dec 2008 at 9:06

GoogleCodeExporter commented 8 years ago
For now, I'll have the behavior track the platform behavior as it's much 
simpler.

Original comment by kenneth....@gmail.com on 4 Dec 2008 at 9:06