[
https://issues.apache.org/jira/browse/FLEX-33985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13843714#comment-13843714
]
Ben Wagler commented on FLEX-33985:
-----------------------------------
I sure do. This sample code allow you to test the behavior with a TextInput and
a TextArea. Deletion of a selection seems to work properly, although navigating
in the test with keyboard arrows seems to be broken as well, i.e using the
right arrow moves the cursor to the previous line instead of the previous
character. Finally, this code compiled with Apache Flex 4.10 works as expected.
<?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">
<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
>
> 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.4#6159)