[NUI] Add InterceptKeyEvent
authorjoogab.yun <joogab.yun@samsung.com>
Mon, 4 Jul 2022 01:35:02 +0000 (10:35 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Mon, 4 Jul 2022 07:13:17 +0000 (16:13 +0900)
commitafcd954f9271439707f204f3251fb6e43427fd96
treeec9546d51d5a862fd3492a1bf571412e2cdbfaf8
parente5a64c770847f6d33066b439a54c8f1ba0ea6deb
[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.
}
```
src/Tizen.NUI/src/internal/Interop/Interop.Window.cs
src/Tizen.NUI/src/public/Window/WindowEvent.cs