Revert "[Tizen] Remove to call key consumed event in ATSPI bridge"
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 6 Dec 2022 06:18:26 +0000 (15:18 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 6 Dec 2022 06:18:26 +0000 (15:18 +0900)
This reverts commit 4233ebd3f176914f53b097936ff3ee3039b889ab.

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

index 3787031..e274ad8 100644 (file)
@@ -122,7 +122,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;
   }
 
   /**