[NUI] Add SetFocusFinderRootView() and ResetFocusFinderRootView() api
authorjoogab.yun <joogab.yun@samsung.com>
Thu, 28 Apr 2022 07:44:52 +0000 (16:44 +0900)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Tue, 10 May 2022 06:09:58 +0000 (15:09 +0900)
commita76e03488155b1b23c7cf03e816ef7ddcd387f27
treeba37d528296b66c21a1e15449350ede1af1243fe
parent373463dce19f6d76ca08fbb865db429ad72691a3
[NUI] Add SetFocusFinderRootView() and ResetFocusFinderRootView() api

If you enable DefaultAlgorithm of FocusManager, you can automatically move the focus to the nearest View.

However, this is always root based on Window.

We want to change this root.

So I add two apis

1. SetFocusFinderRootView(View root)

  - This will only look for focusable Views within that View tree when looking for the next focus.

2. ResetFocusFinderRootView()

  - the root becomes the window again.

Dependency
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/274424/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/274422/
src/Tizen.NUI/src/internal/Interop/Interop.FocusManager.cs
src/Tizen.NUI/src/public/Input/FocusManager.cs