[NUI] Modify the default action of back navigation
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 1 Dec 2022 06:04:31 +0000 (15:04 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Fri, 10 Mar 2023 07:00:48 +0000 (16:00 +0900)
commit544e0609ff3b0d918a512bac66e298a7771b92b8
treeb765e3e52fb0dd063d4e312a21221a90a49675c4
parent0d8552df2f77f637ddc71c30b27cdc207aa36460
[NUI] Modify the default action of back navigation

Previously, back navigation only pops the peek page.
However, in most cases, application wants to exit the program when back
button is clicked on the first page.
This forces application to customize back navigation to change the
default action of back navigation.

So now, the default action of back navigation has been modified.
If navigator has more than one page, then the peek page is popped by
back navigation.
Otherwise, the current program is exited by back navigation.
src/Tizen.NUI.Components/Controls/Navigation/AppBar.cs
src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs
src/Tizen.NUI.Components/Controls/Navigation/Page.cs