[NUI] Fix build error of Tizen.NUI.Samples
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 24 Feb 2021 04:06:53 +0000 (13:06 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 25 Feb 2021 08:24:58 +0000 (17:24 +0900)
- In CulledTest.cs, 'OnKeyEvent' is missed for Window KeyEvent

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/CulledTest.cs

index 621b1a6..4bc8a69 100755 (executable)
@@ -47,13 +47,25 @@ namespace Tizen.NUI.Samples
             tlog.Debug(tag, $"timer start!");
         }
 
-        private bool onTick(object o, Timer.TickEventArgs e) 
+        private bool onTick(object o, Timer.TickEventArgs e)
         {
             textStatus.Text = $"Culled={text.Culled}";
             tlog.Debug(tag, $"text.Culled={text.Culled}");
             return true;
         }
 
+        private void OnKeyEvent(object sender, Window.KeyEventArgs e)
+        {
+            if(e.Key.State == Key.StateType.Down)
+            {
+                if(e.Key.KeyPressedName == "Escape" || e.Key.KeyPressedName == "BackSpace")
+                {
+                    // Do Something later
+                }
+
+            }
+        }
+
         public void Deactivate()
         {
             timer.Stop();