Revert "[Tizen] Remove to call key consumed event in ATSPI bridge"
authordongsug.song <dongsug.song@samsung.com>
Wed, 14 Jun 2023 00:57:48 +0000 (09:57 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Wed, 14 Jun 2023 00:57:48 +0000 (09:57 +0900)
This reverts commit 787896ca8cca9046e08fee6197b58aa9020c792b.

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;
   }
 
   /**