[NUI] Fix recursion when the view sets KeyboardNavigationSupport to true (#2100)
authorJiyun Yang <ji.yang@samsung.com>
Fri, 6 Nov 2020 07:09:35 +0000 (16:09 +0900)
committerGitHub <noreply@github.com>
Fri, 6 Nov 2020 07:09:35 +0000 (16:09 +0900)
commit5f22bdc0be9a26243b1938cb7b2bff442cb5c8ac
tree541f631330776ec181eaa90b028582e1366916ef
parent2f42845f281682383477d410e8c7ecf8230209da
[NUI] Fix recursion when the view sets KeyboardNavigationSupport to true (#2100)

In Dali code, the method GetNextKeyboardFocuableActor should return
an empty actor (= the base handle without a referenced object)
if there is no actor can be focused.

The corresponding method in NUI is GetNextFocusableView.
It returned new View() (that is not an empty actor) which leads to the wrong result.
So instead returning new View, this patch returns a null IntPtr.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/internal/ViewWrapperImpl.cs
src/Tizen.NUI/src/public/BaseComponents/CustomView.cs