don't update value after every keystroke (forcing expensive redraws), but rather...
authorRichard Fairhurst <richard@systemed.net>
Tue, 4 Jan 2011 19:39:28 +0000 (19:39 +0000)
committerRichard Fairhurst <richard@systemed.net>
Tue, 4 Jan 2011 19:39:28 +0000 (19:39 +0000)
net/systemeD/potlatch2/mapfeatures/editors/FreeTextEditor.mxml

index 2141807..287fe6b 100644 (file)
@@ -8,7 +8,9 @@
     direction="{fieldDirection}" styleName="titledEditor">
 
   <mx:Label text="{fieldName}:"/>
-  <flexlib:PromptingTextInput id="inputBox" prompt="{prompt}" text="{value}" width="100%" change="value = inputBox.text" restrict="&#x0020;-&#x10FFFF;" />
+  <flexlib:PromptingTextInput id="inputBox" prompt="{prompt}" text="{value}" width="100%" 
+      focusOut="value = inputBox.text" enter="value = inputBox.text"
+      restrict="&#x0020;-&#x10FFFF;" />
 
   <mx:Script><![CDATA[