1 Reply Latest reply on Aug 20, 2012 1:54 PM by sandip p deshmukh

    Ctrl-Z/Ctrl-Y  Undo/Redo in Text controls

    newfangledmike
      It is not working for the text controls. Is this something you have to activate on each control? What am I missing?

      thanks!
        • 1. Re: Ctrl-Z/Ctrl-Y  Undo/Redo in Text controls
          sandip p deshmukh

          Register you key listener on FlexGlobals.topLevelApplication.systemManager

           

          Something like this:

          FlexGlobals.topLevelApplication.systemManager.

          addEventListener(KeyboardEvent.KEY_DOWN, manageUndoRedo);

          FlexGlobals.topLevelApplication.systemManager.

          addEventListener(KeyboardEvent.KEY_UP, manageUndoKey);

          And in the functions check if the event.target is UITextField

          This will listen for all the UITextFields even on the TitleWindows