flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33985) [TLF] Pressing BACKSPACE key when editing a TextInput deletes a whole line
Date Thu, 26 Dec 2013 06:57:52 GMT

    [ 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" 
			   minWidth="955" minHeight="600"
			import flashx.textLayout.tlf_internal;
			import flashx.textLayout.container.ContainerController;
			use namespace tlf_internal;
			private function trytofix():void
				ContainerController.usesDiscretionaryHyphens = false;
	<s:TextInput id="input"
				 horizontalCenter="0" top="10"/>
	<s:TextArea id="area"
				width="200" height="100"
				horizontalCenter="0" top="50" />

> [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

View raw message