[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)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 6 Dec 2022 08:08:09 +0000 (17:08 +0900)
commit82f8afb5dd5379b43400e4c94f9c80d96b6c66cd
tree44500907467b97c34b18000f231cdbcf3ac72323
parent918c0d716efa5464042e3288ae86936151f7c090
[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