[NUI] Apply SetFocusFinderRootView() to DialogPage only when DefaultAlgorithm Enabled
authordongsug.song <dongsug.song@samsung.com>
Thu, 2 Jun 2022 08:46:41 +0000 (17:46 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 2 Jun 2022 09:14:59 +0000 (18:14 +0900)
src/Tizen.NUI.Components/Controls/Navigation/Page.cs

index ee15a92..0b56633 100755 (executable)
@@ -244,6 +244,11 @@ namespace Tizen.NUI.Components
         {
             if (FocusManager.Instance.IsDefaultAlgorithmEnabled())
             {
+                if (this is DialogPage)
+                {
+                    FocusManager.Instance.ResetFocusFinderRootView();
+                }
+
                 var currentFocusedView = FocusManager.Instance.GetCurrentFocusView();
                 if (currentFocusedView)
                 {
@@ -294,6 +299,11 @@ namespace Tizen.NUI.Components
                     temp.Unparent();
                     temp.Dispose();
                 }
+
+                if (this is DialogPage)
+                {
+                    FocusManager.Instance.SetFocusFinderRootView(this);
+                }
             }
 
         }