3 Replies Latest reply on Jan 31, 2015 1:57 AM by UQg

    Button event handlers in indesign cc

    2b_decided

      Hello,

      I am having some issues with porting existing InDesign CS6 jsx scripts to CC versions 9 and 10. I used addEventListener('click', function(){}) event handlers and they worked fine in CS6, but the left mouse button is not being registered as a click in CC 9 and 10.

      I found some existing partial solutions which recommended wrapping the button with groups, but this introduces more problems, because the .hide() method called on the group does not make the button disappear.

      Is there a better way sort this issue out, preferably staying backwards compatible with CS6?

      Filip