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

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


The following commit(s) were added to refs/heads/develop by this push:
     new 8600663  Update FocusManager.as added showFocus
8600663 is described below

commit 86006632f55b3c1d94266192bdeb310434e20588
Author: pashminakazi <[email protected]>
AuthorDate: Wed Dec 2 18:37:07 2020 +0500

    Update FocusManager.as added showFocus
---
 .../src/main/royale/mx/managers/FocusManager.as    | 50 ++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as
index 9358bc9..27e5b9b 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as
@@ -2430,6 +2430,56 @@ public class FocusManager extends EventDispatcher 
implements IFocusManager
         // trace("END FOcusManger Hide Focus");
     }
     
+    //----------------------------------
+    //  showFocusIndicator
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the showFocusIndicator property.
+     */
+    mx_internal var _showFocusIndicator:Boolean = false;
+    
+    /**
+     *  @inheritDoc
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get showFocusIndicator():Boolean
+    {
+        return _showFocusIndicator;
+    }
+    
+    /**
+     *  @private
+     */
+    public function set showFocusIndicator(value:Boolean):void
+    {
+        var changed:Boolean = _showFocusIndicator != value;
+        // trace("FM " + this + " showFocusIndicator = " + value);
+        _showFocusIndicator = value;
+
+        if (hasEventListener("showFocusIndicator"))
+            dispatchEvent(new Event("showFocusIndicator"));
+    }
+       public function showFocus():void
+    {
+        if (!showFocusIndicator)
+        {
+            showFocusIndicator = true;
+           /* if (_lastFocus)
+                _lastFocus.drawFocus(true); */
+        }
+    }
+       //Added drawFocus here,It was in IFocusManagerComponent
+       public function drawFocus(isFocused:Boolean):void
+       {
+       
+       }
+    
 }
 
 }

Reply via email to