Revert "[Tizen] Remove to call key consumed event in ATSPI bridge"
authorjoogab.yun <joogab.yun@samsung.com>
Mon, 11 Sep 2023 06:16:48 +0000 (15:16 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Mon, 11 Sep 2023 06:16:48 +0000 (15:16 +0900)
This reverts commit b95fd308f8a61d697454c181f1f86e92f56f021a.

dali/internal/accessibility/bridge/bridge-impl.cpp

index de479b1..f76a0ea 100644 (file)
@@ -123,7 +123,14 @@ public:
       }
     }
 
-    return Consumed::NO;
+    auto methodObject = mRegistryClient.method<bool(std::tuple<uint32_t, int32_t, int32_t, int32_t, int32_t, std::string, bool>)>("NotifyListenersSync");
+    auto result       = methodObject.call(std::tuple<uint32_t, int32_t, int32_t, int32_t, int32_t, std::string, bool>{keyType, 0, static_cast<int32_t>(keyCode), 0, static_cast<int32_t>(timeStamp), keyName, isText ? 1 : 0});
+    if(!result)
+    {
+      LOG() << result.getError().message;
+      return Consumed::NO;
+    }
+    return std::get<0>(result) ? Consumed::YES : Consumed::NO;
   }
 
   /**