Revert "[Tizen] Oring key event callback result" 14/140414/1
authordongsug.song <dongsug.song@samsung.com>
Tue, 25 Jul 2017 01:45:26 +0000 (10:45 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 25 Jul 2017 01:45:29 +0000 (10:45 +0900)
This reverts commit b008e80ffc40762f8d97d3d0be854ee0994dad77.

Change-Id: I55f72496f633d888dc52a53154d3bfd1f07a41a2

Tizen.NUI/src/public/BaseComponents/View.cs

index 100800a..5847cb8 100755 (executable)
@@ -215,24 +215,16 @@ namespace Tizen.NUI.BaseComponents
         {
             KeyEventArgs e = new KeyEventArgs();
 
-            bool result = false;
-
             e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
 
             if (_keyEventHandler != null)
             {
-                Delegate[] delegateList = _keyEventHandler.GetInvocationList();
-
-                // Oring the result of each callback.
-                foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
-                {
-                    result |= del( this, e );
-                }
+                return _keyEventHandler(this, e);
             }
-
-            return result;
+            return false;
         }
 
+
         private EventHandler _onRelayoutEventHandler;
         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
         private delegate void OnRelayoutEventCallbackType(IntPtr control);