Revert "[Tizen] Oring key event callback result" 89/133789/1
authordongsug.song <dongsug.song@samsung.com>
Tue, 13 Jun 2017 07:41:10 +0000 (16:41 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 13 Jun 2017 07:41:13 +0000 (16:41 +0900)
This reverts commit 7be618b7adc58f30e9ce55883228e977847b0916.

Change-Id: I296103b70e8677a1ddd56ada2bcf606f7ea500b6

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

index c0cb5b9..f9d4e8f 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);