Skip navigation
newfangledmike
Currently Being Moderated

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

Jul 12, 2006 3:37 PM

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

thanks!
 
Replies
  • Currently Being Moderated
    Aug 20, 2012 1:54 PM   in reply to newfangledmike

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)