This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 6ad2400180ea752747a68afe230a890e3548b0a6
Author: Alex Harui <aha...@apache.org>
AuthorDate: Sun Jan 13 23:51:51 2019 -0800

    Container needs defaultButton
---
 .../MXRoyale/src/main/royale/mx/core/Container.as  | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
index 6606c86..69a88df 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
@@ -392,6 +392,45 @@ public class Container extends UIComponent
                typeNames = "Container";
     }
     
+    //----------------------------------
+    //  defaultButton
+    //----------------------------------
+    
+    /**
+     *  @private
+     *  Storage for the defaultButton property.
+     */
+    private var _defaultButton:IFlexDisplayObject;
+    
+    [Inspectable(category="General")]
+    
+    /**
+     *  The Button control designated as the default button
+     *  for the container.
+     *  When controls in the container have focus, pressing the
+     *  Enter key is the same as clicking this Button control.
+     *
+     *  @default null
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get defaultButton():IFlexDisplayObject
+    {
+        return _defaultButton;
+    }
+    
+    /**
+     *  @private
+     */
+    public function set defaultButton(value:IFlexDisplayObject):void
+    {
+        _defaultButton = value;
+        //ContainerGlobals.focusedContainer = null;
+    }
+    
     
     //----------------------------------
     //  textDecoration

Reply via email to