0 Replies Latest reply on Sep 10, 2009 7:43 AM by gmitchel

    Resign Control to Photoshop

    gmitchel Level 1

      The SWF Panels documention says to "resign control" to Photoshop after reacting to a keypress event on a SWF panel. What's missing is a description of how to do this or a code sample.


      This code will grab the keyboard away from Photoshop CS4:


               application.addEventListener(KeyboardEvent.KEY_UP, keyHandler);


               private function keyHandler(event:KeyboardEvent):void {
                   if (event.altKey && event.ctrlKey && event.shiftKey && (event.charCode==65 || event.charCode==97)) {

      How do I resign control back to Photoshop after a KeyboardEvent fires?