1 Reply Latest reply on Apr 1, 2010 5:16 AM by Skempy

    [JS CS4] Close active dialog with a keyboard shortcut

    Skempy Level 1



      I have built a dialogue window using


           var w = new Window("dialog", "My Dialog");


      This dialog contains a couple of drop down list which it uses to look up and display data from an external csv file.


      This is all working well.


      My problem is that I can launch the script that displays the dialog through a keyboard shortcut


      With the dialog active I cannot do anything else such as run another script which will close an active Window.


      Is it possible to close the dialog through a keyboard shortcut too?


      Thanks for any assistance.