You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Piotr Zarzycki (JIRA)" <ji...@apache.org> on 2013/10/14 09:56:41 UTC
[jira] [Commented] (FLEX-33820) Cutted text after pasting it from
MS Excel in spark TextInput
[ https://issues.apache.org/jira/browse/FLEX-33820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13793981#comment-13793981 ]
Piotr Zarzycki commented on FLEX-33820:
---------------------------------------
Additionaly I checked it also on 4.11 RC1 and it looks exactly the same.
> Cutted text after pasting it from MS Excel in spark TextInput
> -------------------------------------------------------------
>
> Key: FLEX-33820
> URL: https://issues.apache.org/jira/browse/FLEX-33820
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: TextInput
> Affects Versions: Apache Flex 4.10.0
> Environment: Windows 7 64bit, Adobe Air 2.6
> Reporter: Piotr Zarzycki
> Priority: Minor
>
> Description:
> Text copied from MS Excel's cell and pasted to spark TextInput is cutted and has got additional empty line.
> Problem:
> We've got text in MS Excel's cell: "43091080566" -> after copying it from cell it looks like -> "43091080566\n"
> Example instruction:
> 1) Copy text using button
> 2) ctrl + v in text input
> 3) We are getting this -> http://bit.ly/1au07ay (Text is cutted, and We've got additional line in TextInptut)
> Expected output:
> Compiled same example app with Apache Flex 4.9.0 -> http://bit.ly/1hIAo0x (Text ok, without additional empty line)
> Example:
> <?xml version="1.0"?>
> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:s="library://ns.adobe.com/flex/spark">
> <fx:Script><![CDATA[
> private function buttonClickHandler(event:MouseEvent):void
> {
> Clipboard.generalClipboard.clear();
> Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT, "43091080566\n");
> }
> ]]></fx:Script>
> <s:layout>
> <s:VerticalLayout/>
> </s:layout>
> <s:Button label="Copy text -> 43091080566\n"
> click="buttonClickHandler(event)"/>
> <s:HGroup>
> <s:TextInput id="txtInput"
> width="100" height="30"
> maxChars="11"/>
> </s:HGroup>
> </s:WindowedApplication>
--
This message was sent by Atlassian JIRA
(v6.1#6144)