Skip to content

Commit

Permalink
Revert "[NUI] If the view had focus when it was unparented, the focus…
Browse files Browse the repository at this point in the history
… is cleared. (#4654)"

This reverts commit 09f52bc.

This operation is moved to the DALi.
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/314664/
  • Loading branch information
JoogabYun committed Jul 24, 2024
1 parent d46a3e8 commit bd226bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1143,12 +1143,6 @@ internal IntPtr GetPtrfromView()

internal void RemoveChild(View child)
{
// If the view had focus, it clears focus.
if (child == FocusManager.Instance.GetCurrentFocusView())
{
Tizen.Log.Debug("NUI", $"ClearFocus due to View id:({child.ID}) removed from scene\n");
FocusManager.Instance.ClearFocus();
}
// Do actual child removal
Interop.Actor.Remove(SwigCPtr, View.getCPtr(child));
if (NDalicPINVOKE.SWIGPendingException.Pending)
Expand Down
6 changes: 0 additions & 6 deletions src/Tizen.NUI/src/public/Common/Layer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,6 @@ public override void Remove(View child)
Tizen.Log.Error("NUI", "You have deleted a view that is not a child of this layer.");
return;
}
// If the view had focus, it clears focus.
if (child == FocusManager.Instance.GetCurrentFocusView())
{
FocusManager.Instance.ClearFocus();
}

Interop.Actor.Remove(SwigCPtr, View.getCPtr(child));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Expand Down

0 comments on commit bd226bf

Please sign in to comment.