Add isRepeat to ecore-wl2 KeyEvent 72/298972/1
authorBowon Ryu <bowon.ryu@samsung.com>
Mon, 18 Sep 2023 03:05:48 +0000 (12:05 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Mon, 18 Sep 2023 03:05:48 +0000 (12:05 +0900)
Change-Id: Ib4e5227c714eb52389eb80cf903083f7dafbb80c
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp

index f28dc34..add39ec 100644 (file)
@@ -1516,7 +1516,16 @@ void WindowBaseEcoreWl2::OnKeyDown(void* data, int type, void* event)
     GetDeviceClass(ecore_device_class_get(keyEvent->dev), deviceClass);
     GetDeviceSubclass(ecore_device_subclass_get(keyEvent->dev), deviceSubclass);
 
+    bool isRepeat = false;
+#if defined(ECORE_VERSION_MAJOR) && (ECORE_VERSION_MAJOR >= 1) && defined(ECORE_VERSION_MINOR) && (ECORE_VERSION_MINOR >= 25)
+    if(keyEvent->event_flags & ECORE_EVENT_FLAG_REPEAT)
+    {
+      isRepeat = true;
+    }
+#endif // Since ecore 1.25 version
+
     Integration::KeyEvent keyEvent(keyName, logicalKey, keyString, keyCode, modifier, time, Integration::KeyEvent::DOWN, compose, deviceName, deviceClass, deviceSubclass);
+    keyEvent.isRepeat = isRepeat;
 
     mKeyEventSignal.Emit(keyEvent);
   }