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

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

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

        • 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:


          addEventListener(KeyboardEvent.KEY_DOWN, manageUndoRedo);


          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