[ 
https://issues.apache.org/jira/browse/FLEX-33985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13856783#comment-13856783
 ] 

Alex Harui commented on FLEX-33985:
-----------------------------------

Workaround for now if you are not using discretionary hyphens:


<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
                           xmlns:s="library://ns.adobe.com/flex/spark" 
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           xmlns:layout="org.osmf.layout.*"
                           minWidth="955" minHeight="600"
                           direction="rtl"
                           creationComplete="trytofix()">
        <fx:Script>
                <![CDATA[
                        import flashx.textLayout.tlf_internal;
                        import flashx.textLayout.container.ContainerController;
                        use namespace tlf_internal;
                        private function trytofix():void
                        {
                                ContainerController.usesDiscretionaryHyphens = 
false;
                        }
                ]]>
        </fx:Script>
        <s:TextInput id="input"
                                 width="200"
                                 horizontalCenter="0" top="10"/>
        <s:TextArea id="area"
                                width="200" height="100"
                                horizontalCenter="0" top="50" />
</s:Application>


> [TLF] Pressing BACKSPACE key when editing a TextInput deletes a whole line
> --------------------------------------------------------------------------
>
>                 Key: FLEX-33985
>                 URL: https://issues.apache.org/jira/browse/FLEX-33985
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: TextInput
>    Affects Versions: Apache Flex 4.11.0
>         Environment: Tested on MacOSX, Windows 7, Windows 8
> Tested with Firefox, Chrome
>            Reporter: Ben Wagler
>            Assignee: Alex Harui
>              Labels: easytest
>
> When editing a spark TextInput or TextFlow (problem should exist with 
> TextArea as well but I didn't test), BACKSPACE key behaves incorrectly and 
> delete the current line (if multiple lines) or the whole text instead of the 
> previous character only.
> When application is compiled with a previous version of the SDK, there is no 
> issue (at least with 4.9 and 4.10)
> Steps to reproduce:
> - Add a TextInput to the stage and set its direction to RTL
> - Type in some text
> - Hit the BACKSPACE key to delete the last entered character
> Result:
> The last line of text is deleted
> Expected result:
> Only the last character is deleted



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to