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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -