flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1403824 - /incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as
Date Tue, 30 Oct 2012 19:24:13 GMT
Author: cframpton
Date: Tue Oct 30 19:24:13 2012
New Revision: 1403824

URL: http://svn.apache.org/viewvc?rev=1403824&view=rev
Log:
spark.components.TextInput with displayAsPassword = true will now return a string masked by
asterisks instead of the actual value through MSAA. [SDK-31271]

Modified:
    incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as?rev=1403824&r1=1403823&r2=1403824&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as
Tue Oct 30 19:24:13 2012
@@ -24,10 +24,12 @@ import flash.accessibility.Accessibility
 import flash.events.Event;
 import flash.events.FocusEvent;
 
-import mx.accessibility.AccImpl;
 import mx.accessibility.AccConst;
+import mx.accessibility.AccImpl;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
+import mx.utils.StringUtil;
+
 import spark.components.RichEditableText;
 
 use namespace mx_internal;
@@ -313,7 +315,12 @@ public class RichEditableTextAccImpl ext
      */
     override public function get_accValue(childID:uint):String
     {
-        return RichEditableText(master).text;
+		var richEditableText:RichEditableText = RichEditableText(master);
+		if (richEditableText.displayAsPassword)
+		{
+			return StringUtil.repeat("*", richEditableText.text.length);
+		} 
+		return richEditableText.text;
     }
 
     /**



Mime
View raw message