My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Older

  • Nov 13, 2009
    issue 3 (I cannot run it in Flex 4) reported by alexzaporozhets   -   I try to use component in Flash 4 buider, i get error: VerifyError: Error #1053: Недопустимое переопределение CommandType в gearsandcogs.text.commands.CommandType. at global$init() at gearsandcogs.text::UndoTextFields/onTextChange()[/Users/jacobwright/Projects/libraries/UndoTextFields/src/gearsandcogs/text/UndoTextFields.as:134]
    I try to use component in Flash 4 buider, i get error: VerifyError: Error #1053: Недопустимое переопределение CommandType в gearsandcogs.text.commands.CommandType. at global$init() at gearsandcogs.text::UndoTextFields/onTextChange()[/Users/jacobwright/Projects/libraries/UndoTextFields/src/gearsandcogs/text/UndoTextFields.as:134]
  • Oct 26, 2009
    issue 2 (Undo swallows next legitimate keypress) reported by blanchard.glen   -   What steps will reproduce the problem? 1. Standard Flex TextInput being used 2. Validators with change event validation 3. type, undo then type and first keypress is ignored What version of the product are you using? On what operating system? Vista under Adobe AIR Please provide any additional information below. Overriding the following method of UndoTextFields seems to do the trick. [code] protected override function keyDownHandler(event:KeyboardEvent):void { var textField:TextField = event.target as TextField; if (!textField) { return; } saveLastTextState(event); var cmd:String = getKeyCommand(event); if (cmd == 'Ctrl+Z') { undo(textField); event.preventDefault(); //target.addEventListener(TextEvent.TEXT_INPUT, stopInput, true, 100, true); } else if (cmd == 'Ctrl+Y' || cmd == 'Ctrl+Shift+Z') { redo(textField); //target.addEventListener(TextEvent.TEXT_INPUT, stopInput, true, 100, true); event.preventDefault(); } else { var action:String = getKeyAction(event); var data:Object = getData(textField); data.lastAction = action; } } [/code]
    What steps will reproduce the problem? 1. Standard Flex TextInput being used 2. Validators with change event validation 3. type, undo then type and first keypress is ignored What version of the product are you using? On what operating system? Vista under Adobe AIR Please provide any additional information below. Overriding the following method of UndoTextFields seems to do the trick. [code] protected override function keyDownHandler(event:KeyboardEvent):void { var textField:TextField = event.target as TextField; if (!textField) { return; } saveLastTextState(event); var cmd:String = getKeyCommand(event); if (cmd == 'Ctrl+Z') { undo(textField); event.preventDefault(); //target.addEventListener(TextEvent.TEXT_INPUT, stopInput, true, 100, true); } else if (cmd == 'Ctrl+Y' || cmd == 'Ctrl+Shift+Z') { redo(textField); //target.addEventListener(TextEvent.TEXT_INPUT, stopInput, true, 100, true); event.preventDefault(); } else { var action:String = getKeyAction(event); var data:Object = getData(textField); data.lastAction = action; } } [/code]
  • Feb 23, 2009
    issue 1 (UndoTextFields needs to use internal class) reported by ThomasBurleson   -   Currently, then UndoTextFields uses a init object to store history items in a Dictionary;e.g. var data:Object = textFieldData[textField]; Instead, for clarity, I recommend the code use an internal class: class TextHistory { public var history : CommandHistory = null; public var lastSelection : CommandSelection = null; public var lastAction : CommandActionEnum = null; public var lastValue : String = null; }
    Currently, then UndoTextFields uses a init object to store history items in a Dictionary;e.g. var data:Object = textFieldData[textField]; Instead, for clarity, I recommend the code use an internal class: class TextHistory { public var history : CommandHistory = null; public var lastSelection : CommandSelection = null; public var lastAction : CommandActionEnum = null; public var lastValue : String = null; }
  • Feb 03, 2009
    r4 (Added the flight-framework.swc file to the libs folder.) committed by jacwright   -   Added the flight-framework.swc file to the libs folder.
    Added the flight-framework.swc file to the libs folder.
  • Jan 26, 2009
    UndoTextFields.swc (UndoTextFields SWC file for use in Flex projects.) file uploaded by jacwright
  • Jan 26, 2009
    r3 (Initial import.) committed by jacwright   -   Initial import.
    Initial import.
  • Jan 26, 2009
    r2 (Initial import.) committed by jacwright   -   Initial import.
    Initial import.
  • Jan 26, 2009
    Project undo-textfields created by jacwright   -   Add undo/redo abilities to the TextField's in your Flash or Flex application.
    Add undo/redo abilities to the TextField's in your Flash or Flex application.
 
Hosted by Google Code