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 21418070d380fe578c6b4e8665d32c14c4de8a40..287fe6bb4aa43a6e4afc490f4fe7cd4380109f5a 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[