From: Jihoon Kim Date: Wed, 1 Dec 2010 06:10:44 +0000 (+0900) Subject: [ecore_imf] hide soft keyboard when ecore_imf_context_del is called X-Git-Tag: accepted/2.0/20130306.224007~270 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbf8874bf2aca035dce2ac78debaf4d415a94772;p=profile%2Fivi%2Fecore.git [ecore_imf] hide soft keyboard when ecore_imf_context_del is called --- diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c index abac079..8acea11 100644 --- a/src/lib/ecore_imf/ecore_imf_context.c +++ b/src/lib/ecore_imf/ecore_imf_context.c @@ -212,6 +212,7 @@ EAPI void ecore_imf_context_del(Ecore_IMF_Context *ctx) { void *data; + Ecore_IMF_Input_Panel_State state; if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) { @@ -219,6 +220,12 @@ ecore_imf_context_del(Ecore_IMF_Context *ctx) "ecore_imf_context_del"); return; } + + state = ecore_imf_context_input_panel_state_get(ctx); + + if (state == ECORE_IMF_INPUT_PANEL_STATE_SHOW) + ecore_imf_context_input_panel_hide(ctx); + if (ctx->klass->del) ctx->klass->del(ctx); ECORE_MAGIC_SET(ctx, ECORE_MAGIC_NONE);