summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2019-02-22 11:05:56 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2019-02-22 11:05:56 +0900
commit69b3009c25e76e571b7909f81afa7d4b38bce084 (patch)
tree6ccec87ce73f1e059900f15aff1edc540186dce3
parent218c51e6e45875b5fc8b85dfc18ce72ce2d50d12 (diff)
ecore_imf: Add keycode in key down and key up event structs
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
-rw-r--r--src/lib/ecore_imf/Ecore_IMF.h2
-rw-r--r--src/lib/ecore_imf_evas/ecore_imf_evas.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_imf/Ecore_IMF.h b/src/lib/ecore_imf/Ecore_IMF.h
index be1597b..d733251 100644
--- a/src/lib/ecore_imf/Ecore_IMF.h
+++ b/src/lib/ecore_imf/Ecore_IMF.h
@@ -712,6 +712,7 @@ struct _Ecore_IMF_Event_Key_Down
712 const char *dev_name; /**< The device name of the key pressed @since 1.14 */ 712 const char *dev_name; /**< The device name of the key pressed @since 1.14 */
713 Ecore_IMF_Device_Class dev_class; /**< The device class of the key pressed @since 1.14 */ 713 Ecore_IMF_Device_Class dev_class; /**< The device class of the key pressed @since 1.14 */
714 Ecore_IMF_Device_Subclass dev_subclass; /**< The device subclass of the key pressed @since 1.14 */ 714 Ecore_IMF_Device_Subclass dev_subclass; /**< The device subclass of the key pressed @since 1.14 */
715 unsigned int keycode; /**< Key scan code numeric value @since 1.22 */
715}; 716};
716 717
717/** 718/**
@@ -730,6 +731,7 @@ struct _Ecore_IMF_Event_Key_Up
730 const char *dev_name; /**< The device name of the key released @since 1.14 */ 731 const char *dev_name; /**< The device name of the key released @since 1.14 */
731 Ecore_IMF_Device_Class dev_class; /**< The device class of the key released @since 1.14 */ 732 Ecore_IMF_Device_Class dev_class; /**< The device class of the key released @since 1.14 */
732 Ecore_IMF_Device_Subclass dev_subclass; /**< The device subclass of the key released @since 1.14 */ 733 Ecore_IMF_Device_Subclass dev_subclass; /**< The device subclass of the key released @since 1.14 */
734 unsigned int keycode; /**< Key scan code numeric value @since 1.22 */
733}; 735};
734 736
735/** 737/**
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,
184 imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty; 184 imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty;
185 imf_event->compose = evas_event->compose ? evas_event->compose : _ecore_imf_evas_event_empty; 185 imf_event->compose = evas_event->compose ? evas_event->compose : _ecore_imf_evas_event_empty;
186 imf_event->timestamp = evas_event->timestamp; 186 imf_event->timestamp = evas_event->timestamp;
187 imf_event->keycode = evas_event->keycode;
187 188
188 if (evas_event->dev) 189 if (evas_event->dev)
189 { 190 {
@@ -223,6 +224,7 @@ ecore_imf_evas_event_key_up_wrap(Evas_Event_Key_Up *evas_event,
223 imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty; 224 imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty;
224 imf_event->compose = evas_event->compose ? evas_event->compose : _ecore_imf_evas_event_empty; 225 imf_event->compose = evas_event->compose ? evas_event->compose : _ecore_imf_evas_event_empty;
225 imf_event->timestamp = evas_event->timestamp; 226 imf_event->timestamp = evas_event->timestamp;
227 imf_event->keycode = evas_event->keycode;
226 228
227 if (evas_event->dev) 229 if (evas_event->dev)
228 { 230 {