set_focus(_focus_req_ctx);
if (ecore_imf_context_input_panel_enabled_get (_focus_req_ctx) || !_focus_req_only)
if (!ecore_imf_context_input_panel_show_on_demand_get (_focus_req_ctx) || !_focus_req_only)
- show_input_panel (_focus_req_ctx);
+ ecore_imf_context_input_panel_show(_focus_req_ctx);
_win_focus_in_handler_del();
set_focus(_focus_req_ctx);
if (ecore_imf_context_input_panel_enabled_get (_focus_req_ctx) || !_focus_req_only)
if (!ecore_imf_context_input_panel_show_on_demand_get (_focus_req_ctx) || !_focus_req_only)
- show_input_panel (_focus_req_ctx);
+ ecore_imf_context_input_panel_show(_focus_req_ctx);
WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(_focus_req_ctx);
if (imcontext && imcontext->canvas)
if (ecore_imf_context_input_panel_enabled_get(ctx))
if (!ecore_imf_context_input_panel_show_on_demand_get (ctx))
- show_input_panel(ctx);
+ ecore_imf_context_input_panel_show (ctx);
else
LOGD ("ctx : %p input panel on demand mode : TRUE", ctx);
else
vconf_ignore_key_changed(VCONFKEY_ISF_INPUT_PANEL_STATE, input_panel_state_changed_cb);
}
+TEST_F(EcoreIMFContextWinFocusTest, utc_ecore_imf_input_panel_hide)
+{
+ ecore_imf_context_focus_in(ctx);
+
+ ecore_imf_context_input_panel_event_callback_add(ctx, ECORE_IMF_INPUT_PANEL_STATE_EVENT, _input_panel_state_cb, NULL);
+
+ WAIT_FOR_CALLBACK();
+
+ EXPECT_EQ(callback_called, true);
+ EXPECT_EQ(input_panel_state, ECORE_IMF_INPUT_PANEL_STATE_SHOW);
+
+ callback_called = false;
+
+ ecore_imf_input_panel_hide();
+
+ WAIT_FOR_CALLBACK();
+
+ EXPECT_EQ(callback_called, true);
+ EXPECT_EQ(input_panel_state, ECORE_IMF_INPUT_PANEL_STATE_HIDE);
+}
+
} // namespace