Revert "[Tizen] Remove to call key consumed event in ATSPI bridge"
authorjoogab.yun <joogab.yun@samsung.com>
Wed, 14 Dec 2022 01:33:50 +0000 (10:33 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Wed, 14 Dec 2022 01:33:50 +0000 (10:33 +0900)
This reverts commit eb4d2f8d7d3486cc8edb731328f9e372ff2e2621.

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