Revert "[Tizen] Oring key event callback result" 95/137295/1
authordongsug.song <dongsug.song@samsung.com>
Wed, 5 Jul 2017 04:53:07 +0000 (13:53 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Wed, 5 Jul 2017 04:53:11 +0000 (13:53 +0900)
This reverts commit c5b154acd2179e0822a5434904d095ad039bfb42.

Change-Id: I7c5676809648590902f25612df861136c45e70d0

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

index 2ac63f0..6de4705 100755 (executable)
@@ -218,24 +218,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);