[NUI] BackKeyEvent Proptotype (#1824)
authorneostom432 <31119276+neostom432@users.noreply.github.com>
Wed, 15 Jul 2020 04:50:05 +0000 (13:50 +0900)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2020 04:50:05 +0000 (13:50 +0900)
commit2f6c868c562ebd424b05c01f800a26e3a605d1b8
tree60bbb1ff4c5a0590a0abe3b6058ed4ee71c47397
parent89bd48ad02839341f9883997d99a30b7b1f24d0b
[NUI] BackKeyEvent Proptotype (#1824)

View can subscribe back key event using BackKeyEvent event handler.

When user adds BackKeyEvent callback to View, view is listed as Subscriber of BackKeyManager.

After that, if back key is comming,
BackKeyManager will find top view among back key subscribers which has Visibility and IsOnWidnow property are true.

The top view will emit its BackKeyEvent.

*** Notice ***

It is based on Window KeyEvent so make sure you don't use Window KeyEvent and View KeyEvent.

After binding backkey event from DALi, user can use Window/View KeyEvent
with BackKeyEvent.
src/Tizen.NUI/src/internal/BackKeyManager.cs [new file with mode: 0644]
src/Tizen.NUI/src/public/BaseComponents/ViewEvent.cs