Jump to content
GreenSock

trahm

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by trahm

  1. When I set item.hasSelectableText=true, and then edit a TextField not managed by TransformManager and hit the backspace, TransformManager deletes the current selected item. I stopped TransformManager from doing this by changing the following code in TransformManager private static function onKeyPress($e:KeyboardEvent):void { _keysDown[$e.keyCode] = true; if ($e.keyCode == Keyboard.DELETE ){ //|| $e.keyCode == Keyboard.BACKSPACE) { _keyDispatcher.dispatchEvent(new KeyboardEvent("pressDelete")); } else if ($e.keyCode == Keyboard.SHIFT || $e.keyCode == Keyboard.CONTROL) { _keyDispatcher.dispatchEvent(new KeyboardEvent("pressMultiSelectKey")); } else if($e.keyCode == Keyboard.UP || $e.keyCode == Keyboard.DOWN || $e.keyCode == Keyboard.LEFT || $e.keyCode == Keyboard.RIGHT) { var kbe:KeyboardEvent = new KeyboardEvent("pressArrowKey", true, false, $e.charCode, $e.keyCode, $e.keyLocation, $e.ctrlKey, $e.altKey, $e.shiftKey); _keyDispatcher.dispatchEvent(kbe); } }
×