prevent control characters from getting into keys and values
authorRichard Fairhurst <richard@systemed.net>
Fri, 10 Dec 2010 21:06:38 +0000 (21:06 +0000)
committerRichard Fairhurst <richard@systemed.net>
Fri, 10 Dec 2010 21:06:38 +0000 (21:06 +0000)
net/systemeD/controls/AutoComplete.as
net/systemeD/potlatch2/TagViewer.mxml
net/systemeD/potlatch2/mapfeatures/editors/FreeTextEditor.mxml
net/systemeD/potlatch2/save/SaveDialog.mxml

index e164f1ae4efcc849b58748ce4580ac645676ec5a..d97b441fec8c3d43848ae949a31602215b3c1bf2 100644 (file)
@@ -81,6 +81,7 @@ package net.systemeD.controls {
                        setStyle("paddingLeft",0);
                        setStyle("paddingRight",0);
                        rowCount = 7;
+                       restrict="\u0020-\uFFFF";
                }
                
                //--------------------------------------------------------------------------
index 678cf187cb7a7deba9ae5959a5ae0005af04a537..794d607f220b5cbe39ca3f681013d2a6fb7611c8 100644 (file)
@@ -82,7 +82,9 @@
             <mx:columns>
                 <mx:DataGridColumn editable="false" dataField="description" headerText="Relation"/>
                 <mx:DataGridColumn editable="false" dataField="id_idx" headerText="ID"/>
-                <mx:DataGridColumn editable="true" dataField="role" headerText="Role"/>
+                <mx:DataGridColumn editable="true" dataField="role" headerText="Role">
+                    <mx:itemEditor><mx:Component><mx:TextInput restrict="\u0020-\uFFFF" /></mx:Component></mx:itemEditor>
+                </mx:DataGridColumn>
             </mx:columns>
         </mx:DataGrid>
 
           <mx:columns>
             <mx:DataGridColumn editable="false" dataField="type" headerText="Type"/>
             <mx:DataGridColumn editable="false" dataField="id" headerText="ID"/>
-            <mx:DataGridColumn editable="true" dataField="role" headerText="Role"/>
+            <mx:DataGridColumn editable="true" dataField="role" headerText="Role">
+                               <mx:itemEditor><mx:Component><mx:TextInput restrict="\u0020-\uFFFF" /></mx:Component></mx:itemEditor>
+                       </mx:DataGridColumn>
           </mx:columns>
         </mx:DataGrid>
       </mx:VBox>
index 1215620a8541383c01098dda641286b048d75662..eb60390e0de4cbec8bb54615e50beae110950b1a 100644 (file)
@@ -8,7 +8,7 @@
     direction="{fieldDirection}" styleName="titledEditor">
 
   <mx:Label text="{fieldName}:"/>
-  <flexlib:PromptingTextInput id="inputBox" prompt="{prompt}" text="{value}" width="100%" change="value = inputBox.text"/>
+  <flexlib:PromptingTextInput id="inputBox" prompt="{prompt}" text="{value}" width="100%" restrict="\u0020-\uFFFF" change="value = inputBox.text"/>
 
   <mx:Script><![CDATA[
   
index 548d5eefdbeb50c4a097a1bef31a57fec7a6aff4..9b0353abe4aeafb1186e5aa994dfcd30e7f20770 100644 (file)
               itemEditBeginning="allowForEdit(event)"
               itemEditEnd="verifyInput(event)">
             <mx:columns>
-                <mx:DataGridColumn editable="true" dataField="k" headerText="Key"/>
-                <mx:DataGridColumn editable="true" dataField="v" headerText="Value"/>
+                <mx:DataGridColumn editable="true" dataField="k" headerText="Key">
+                    <mx:itemEditor><mx:Component><mx:TextInput restrict="\u0020-\uFFFF" /></mx:Component></mx:itemEditor>
+                </mx:DataGridColumn>
+                <mx:DataGridColumn editable="true" dataField="v" headerText="Value">
+                    <mx:itemEditor><mx:Component><mx:TextInput restrict="\u0020-\uFFFF" /></mx:Component></mx:itemEditor>
+                </mx:DataGridColumn>
             </mx:columns>
           </mx:DataGrid>        
                  <mx:HBox horizontalAlign="right" width="100%">