[ecore_imf] hide soft keyboard when ecore_imf_context_del is called
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 1 Dec 2010 06:10:44 +0000 (15:10 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 1 Dec 2010 06:10:44 +0000 (15:10 +0900)
src/lib/ecore_imf/ecore_imf_context.c

index abac079..8acea11 100644 (file)
@@ -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);