Restore tab/enter behaviour for simple tag panel
authorRichard Fairhurst <richard@systemeD.net>
Fri, 16 Mar 2012 12:11:12 +0000 (12:11 +0000)
committerRichard Fairhurst <richard@systemeD.net>
Fri, 16 Mar 2012 12:11:12 +0000 (12:11 +0000)
net/systemeD/potlatch2/TagViewer.mxml
net/systemeD/potlatch2/mapfeatures/editors/FreeTextEditor.mxml

index f05a3e0..b6494e5 100644 (file)
@@ -63,8 +63,8 @@
 
   <!-- Standard tagging panel -->
 
-  <mx:VBox id="tagsPanel" width="100%" height="100%" creationPolicy="auto" tabChildren="false">
-    <mx:ViewStack id="stack" width="100%" height="100%">
+  <mx:VBox id="tagsPanel" width="100%" height="100%" creationPolicy="auto" tabChildren="true">
+    <mx:ViewStack id="stack" width="100%" height="100%" change="tagsPanel.tabChildren=(event.newIndex==0)">
       <mx:VBox width="100%" height="100%" label="Simple" id="editorContainer" creationComplete="initEditorStackUIs()" styleName="dndPanelVbox">
         <mx:VBox width="100%" verticalGap="1" styleName="dndTagHeader">
           <mx:HBox width="100%" id="iconContainer" styleName="featureSelector">
index d67d91f..74ae695 100644 (file)
     styleName="titledEditor" label="{fieldName}:">
 
     <controls:PromptingTextInputWarning id="inputBox" prompt="{prompt}" text="{value}" width="100%"
-      focusOut="value = inputBox.text" enter="value = inputBox.text"
+      focusOut="value = inputBox.text" enter="value = inputBox.text; focusManager.getNextFocusManagerComponent().setFocus();"
       restrict="&#x0020;-&#x10FFFF;" />
   <fx:Script><![CDATA[
-  
       [Bindable(event="factory_set")]
       protected function get prompt():String {
           return _factory == null ? null : FreeTextEditorFactory(_factory).notPresentText;