When the focus is set by _canvas_focus_in_cb, _focused_ctx is always null.
It makes key events not to be sent to wl_textinput module in the filter_key_event function.
It is much better to set the _focused_ctx value in the set_focus function if focus is successfully set
Change-Id: I7cec1e954035f18751ea38098b118f150fb9356f
}
imcontext->input = input;
+ _focused_ctx = ctx;
wl_text_input_activate(imcontext->text_input, seat,
ecore_wl_window_surface_get(imcontext->window));
void
wayland_im_context_focus_in(Ecore_IMF_Context *ctx)
{
- // TIZEN_ONLY(20150708): Support back key
- _focused_ctx = ctx;
- //
LOGD ("ctx : %p. enable : %d, on demand : %d\n", ctx,
ecore_imf_context_input_panel_enabled_get(ctx),
ecore_imf_context_input_panel_show_on_demand_get (ctx));
if (!set_focus(ctx)) {
- _focused_ctx = NULL;
LOGW("ctx : %p. Fail to set focus!", ctx);
return;
}