[NUI] Add InterceptKeyEvent
authorjoogab.yun <joogab.yun@samsung.com>
Mon, 4 Jul 2022 01:35:02 +0000 (10:35 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 31 Aug 2022 05:41:10 +0000 (14:41 +0900)
commitad33ee5f1410969fde64984cbdca464e1781a806
tree59f8dea9916b2b5bc3fd922cc822b1c5ad3b395f
parentdbb9f3c163691127a5dba10ebdb3788474bc21da
[NUI] Add InterceptKeyEvent

Intercepts KeyEvents in the window before dispatching KeyEvents to the View.
If a KeyEvent is consumed, no KeyEvent is delivered to the View.

```c#
Window win = NUIApplication.GetDefaultWindow();
win.InterceptKeyEvent += OnInterceptKeyEvent;

private void OnInterceptKeyEvent(object sender, Window.KeyEventArgs e)
{
   return false;   //If it returns true, other views and windows do not receive KeyEvents.
}
```

refer
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-core/+/280490/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/280491/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/280492/
src/Tizen.NUI/src/internal/Interop/Interop.Window.cs
src/Tizen.NUI/src/public/Window/WindowEvent.cs