[entry] added new feature - hiding ime on selection changes
authorMyungjae Lee <mjae.lee@samsung.com>
Wed, 20 Oct 2010 13:54:57 +0000 (22:54 +0900)
committerMyungjae Lee <mjae.lee@samsung.com>
Wed, 20 Oct 2010 13:54:57 +0000 (22:54 +0900)
src/lib/edje_entry.c

index 37baed0..7dd6000 100644 (file)
@@ -561,6 +561,13 @@ _sel_extend(Evas_Textblock_Cursor *c, Evas_Object *o, Entry *en)
         en->selection = NULL;
      }
    _edje_emit(en->rp->edje, "selection,changed", en->rp->part->name);
+
+#ifdef HAVE_ECORE_IMF   
+   if (en->input_panel_enable)
+     {
+               ecore_imf_context_input_panel_hide(en->imf_context);
+     }
+#endif
 }
 
 static void
@@ -576,6 +583,13 @@ _sel_preextend(Evas_Textblock_Cursor *c, Evas_Object *o, Entry *en)
         en->selection = NULL;
      }
    _edje_emit(en->rp->edje, "selection,changed", en->rp->part->name);
+   
+#ifdef HAVE_ECORE_IMF   
+   if (en->input_panel_enable)
+     {
+               ecore_imf_context_input_panel_hide(en->imf_context);
+     }
+#endif
 }
 
 static void