indesign - How to detect shift down when clicking on ScriptUI button? -
on scriptui panel, have button. how can detect whether user holding shift
key when click on button?
you can add eventlistener button.
var win = new window ("dialog"); win.abutton = win.add ("button", undefined, "button"); win.abutton.addeventlistener ("click", function (k) { if (k.shiftkey) { alert("foo"); }else{ alert("bah"); } }); win.show ();
Comments
Post a Comment