From 955ca89958442ab7ce58592a7ff30e60f9c41b44 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 22 Feb 2019 11:05:56 +0900 Subject: [PATCH] ecore_imf: Add keycode in key down and key up event structs Change-Id: I5f81cfc054adb72c17ea69b7657637c3adddbcdc Signed-off-by: Jihoon Kim --- src/lib/ecore_imf/Ecore_IMF.h | 2 ++ src/lib/ecore_imf_evas/ecore_imf_evas.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/lib/ecore_imf/Ecore_IMF.h b/src/lib/ecore_imf/Ecore_IMF.h index f284331..16fdd80 100644 --- a/src/lib/ecore_imf/Ecore_IMF.h +++ b/src/lib/ecore_imf/Ecore_IMF.h @@ -718,6 +718,7 @@ struct _Ecore_IMF_Event_Key_Down const char *dev_name; /**< The device name of the key pressed @since 1.14 */ Ecore_IMF_Device_Class dev_class; /**< The device class of the key pressed @since 1.14 */ Ecore_IMF_Device_Subclass dev_subclass; /**< The device subclass of the key pressed @since 1.14 */ + unsigned int keycode; /**< Key scan code numeric value @since 1.22 */ }; /** @@ -736,6 +737,7 @@ struct _Ecore_IMF_Event_Key_Up const char *dev_name; /**< The device name of the key released @since 1.14 */ Ecore_IMF_Device_Class dev_class; /**< The device class of the key released @since 1.14 */ Ecore_IMF_Device_Subclass dev_subclass; /**< The device subclass of the key released @since 1.14 */ + unsigned int keycode; /**< Key scan code numeric value @since 1.22 */ }; /** diff --git a/src/lib/ecore_imf_evas/ecore_imf_evas.c b/src/lib/ecore_imf_evas/ecore_imf_evas.c index fecd173..1a53e56 100644 --- a/src/lib/ecore_imf_evas/ecore_imf_evas.c +++ b/src/lib/ecore_imf_evas/ecore_imf_evas.c @@ -184,6 +184,7 @@ ecore_imf_evas_event_key_down_wrap(Evas_Event_Key_Down *evas_event, imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty; imf_event->compose = evas_event->compose ? evas_event->compose : _ecore_imf_evas_event_empty; imf_event->timestamp = evas_event->timestamp; + imf_event->keycode = evas_event->keycode; if (evas_event->dev) { @@ -223,6 +224,7 @@ ecore_imf_evas_event_key_up_wrap(Evas_Event_Key_Up *evas_event, imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty; imf_event->compose = evas_event->compose ? evas_event->compose : _ecore_imf_evas_event_empty; imf_event->timestamp = evas_event->timestamp; + imf_event->keycode = evas_event->keycode; if (evas_event->dev) { -- 2.7.4