Question
Mouse events listener
I'm having trouble listening for mouse events in Bridge CS6.
This example script works well in Photoshop and Toolkit, but not in Bridge:
var w =new Window ("dialog");
var b = w.add ("button", undefined, "Qwerty");
b.addEventListener("click", function (k){whatsup (k)});
function whatsup (p)
{
if(p.button == 2){ $.writeln ("Right-button clicked.") }
if(p.shiftKey){ $.writeln ("Shift key pressed.") }
$.writeln ("X: "+ p.clientX);
$.writeln ("Y: "+ p.clientY);
}
w.show ();Other event types like resize or focus work well.
The event types that seem to be broken are: mousedown, mouseup, mouseover, mouseout, click
Is there a work-around to this problem?
