[Tizen] Oring key event callback result
authordongsug.song <dongsug.song@samsung.com>
Wed, 21 Jun 2017 05:43:33 +0000 (14:43 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Wed, 21 Jun 2017 05:43:36 +0000 (14:43 +0900)
This reverts commit 50d6272f9daf1824aa66920d4f6debbbd9da1314.

Change-Id: I7495cc8605f14f958c9158655d8fc4ed4de91b5d

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

index 6de4705..2ac63f0 100755 (executable)
@@ -218,15 +218,23 @@ namespace Tizen.NUI.BaseComponents
         {
             KeyEventArgs e = new KeyEventArgs();
 
+            bool result = false;
+
             e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
 
             if (_keyEventHandler != null)
             {
-                return _keyEventHandler(this, e);
+                Delegate[] delegateList = _keyEventHandler.GetInvocationList();
+
+                // Oring the result of each callback.
+                foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
+                {
+                    result |= del( this, e );
+                }
             }
-            return false;
-        }
 
+            return result;
+        }
 
         private EventHandler _onRelayoutEventHandler;
         [UnmanagedFunctionPointer(CallingConvention.StdCall)]