all groups > flash (macromedia) > september 2003 >
You're in the

flash (macromedia)

group:

Undo Function in Text Fields?


Undo Function in Text Fields? Funke
9/5/2003 8:01:21 PM
flash (macromedia):
Is there any easy way to allow my users to perform an 'Undo 'in a text field? Right now if I type 'ctrl-z' in a text field it does nothing (in test movie mode) or leaves a block character (in the browser)...

Thanks!
-Funke

Re: Undo Function in Text Fields? One Louder
9/5/2003 10:06:55 PM
No, you'll have to write the code to do this yourself. I haven't tried it, but the approach I'd take is to capture the current text when the field gets focus (there's an event for this), then look for changes to the field (again, an event) to see if the user has typed ctrl-Z (NOTE: on Mac, it's cmd-Z), if so, restore the old contents of the field.

AddThis Social Bookmark Button