Annoying copy-paste bug in TLF (4.1.0.16076)
Hello,
I've found annpoying issue with copy-paste in TLF. Maybe someone can explain me how to live with it ![]()
Here's a very simple MXML code that creates two TLF containers:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
minWidth="955"
minHeight="600"
creationComplete="onCreationComplete()">
<mx:Script>
import flashx.textLayout.container.ContainerController;
import flashx.textLayout.elements.TextFlow;
import flashx.textLayout.edit.EditManager;
private var textFlow1:TextFlow = new TextFlow();
private var textFlow2:TextFlow = new TextFlow();
private var textContainer1:Sprite = new Sprite();
private var textContainer2:Sprite = new Sprite();
private function onCreationComplete():void {
c1.rawChildren.addChild(textContainer1);
c2.rawChildren.addChild(textContainer2);
var controller1:ContainerController = new ContainerController(textContainer1, c1.width, c1.height);
var controller2:ContainerController = new ContainerController(textContainer2, c2.width, c2.height);
textFlow1.flowComposer.addController(controller1);
textFlow2.flowComposer.addController(controller2);
textFlow1.interactionManager=new EditManager();
textFlow2.interactionManager=new EditManager();
textFlow1.flowComposer.updateAllControllers();
textFlow2.flowComposer.updateAllControllers();
textFlow1.interactionManager.refreshSelection();
textFlow2.interactionManager.refreshSelection();
}
</mx:Script>
<mx:Canvas id="c1"
width="200"
height="200"
borderStyle="solid"/>
<mx:Canvas id="c2"
width="200"
height="200"
borderStyle="solid"/>
</mx:Application>
Now do the following sequence of actions withing the application:
1. Put cursor to the first (left) container and type some text.
2. Select the typed text. And copy it via Ctrl+C.
3. Invoke context menu via right mouse button on first container.
4. DO NOT choose any menu item - click outside popup menu to close it.
5. Click to a second container - cursor is moved correctly to a second container.
6. Press Ctrl+V. Text is inserted into first container ![]()
Note that this issue is reproducible on both Mac and Windows platforms.
