Hello,
It just a report for others.
I tried to catch 'click' event on Button of ScriptUI through 'addEventListener' on illustratorCC.
However it doesn't work. CS6 and under the version, it works well. The problem is CC only.
I have already searched about it in the forum, and I could find the similar situation on AfterEffectsCC forum below.
http://forums.adobe.com/message/5449261#5449261
I checked that illustratorCC is also can use only 'mousedown' event, but not to be able to use 'mouseup' and 'click'.
And I tested below codes.
function clickHandler(e)
{
alert("ok");
}
dlg.btnPnl.btn1.onClick = clickHandler; // It works ! The both of click and enter key.
dlg.btnPnl.btn1.addEventListener('mousedown', clickHandler); // It works only click. Enter key doesn't work..
dlg.btnPnl.btn1.addEventListener('click', clickHandler); // It doesn't work..
dlg.btnPnl.btn1.addEventListener('mouseup', clickHandler); // It doesn't work..
It seems to be the best solutions is using
button.onClick = clickHandler;
However I think it might be the common bug on Adobe CC series and it should be solved.