return EINA_FALSE; /* the event is removed from the queue */
#else
Ecore_IMF_Event_Key_Down imf_event;
+ Eina_Bool filter_ret = EINA_FALSE;
+
_ecore_event_to_ecore_imf_key_down_event(ev, &imf_event);
- Eina_Bool filter_ret = ecore_imf_context_filter_event(active_ctx, ECORE_IMF_EVENT_KEY_DOWN, (Ecore_IMF_Event *)&imf_event);
+ if (_focused_ctx)
+ filter_ret = ecore_imf_context_filter_event(_focused_ctx, ECORE_IMF_EVENT_KEY_DOWN, (Ecore_IMF_Event *)&imf_event);
+ else
+ LOGD("no focus\n");
+
LOGD ("%s key is pressed. ret : %d\n", ev->keyname, filter_ret);
if (filter_ret) {
return EINA_FALSE; /* the event is removed from the queue */
return EINA_FALSE; /* the event is removed from the queue */
#else
Ecore_IMF_Event_Key_Up imf_event;
+ Eina_Bool filter_ret = EINA_FALSE;
+
_ecore_event_to_ecore_imf_key_up_event(ev, &imf_event);
- Eina_Bool filter_ret = ecore_imf_context_filter_event(active_ctx, ECORE_IMF_EVENT_KEY_UP, (Ecore_IMF_Event *)&imf_event);
+ if (_focused_ctx)
+ filter_ret = ecore_imf_context_filter_event(_focused_ctx, ECORE_IMF_EVENT_KEY_UP, (Ecore_IMF_Event *)&imf_event);
+ else
+ LOGD("no focus\n");
+
LOGD ("%s key is released. ret : %d\n", ev->keyname, filter_ret);
if (filter_ret) {
return EINA_FALSE; /* the event is removed from the queue */