1 Reply Latest reply on Feb 2, 2011 1:44 PM by Pablo Souza

    Tabbing In Titlewindow Opened From Indesign Script Window




      I am working on a FlashBuilder 4 application that is opened from, and interacts with, an Indesign application from a .jsx script. I have added a TitleWindow that provides for login processing (there is a backend database). The login window is opened from the method that is registered as the initialization method for the Flex application. The flow works nicely. The application, with its presentation of a TabNavigator holding the core panels, visually appears then the login TitleWindow opens modally. The id / password is entered, then the web service is called that handles verifying login. The event handlers that receive the callback from this then populate the controls on the application if the user is verified.

      The problem I am having is with tabbing on the TitleWindow. No matter what I do (tabEnabled / tabIndex settings, etc.) the TitleWindow will not receive tab presses and react to them. Tabbing seems to cycle through the Indesign application in the background. From a ScriptUI perspective the Flex application is opened as a Window (I've tried Palette with similar results). Not only does the first tabbable field not get focus, even when explicitly coded to do so, if you try to tab off of it, which doesn't work, then click on and try to enter the second field on the TitleWindow, the first keystroke is ignored.

      If I test the application from FlexBuilder directly, without being invoked as a ScriptUI Window / FlashPlayer, the first field gets focus, tabbing works, etc.

      Can anyone tell me how to make the login window function such that I can set focus on field 1 and have it respond to tab presses?

      Any help appreciated.