return;
}
if (ev->button != 1) return;
+
+#ifdef HAVE_ECORE_IMF
+ if (en->imf_context)
+ {
+ Ecore_IMF_Event_Mouse_Down ecore_ev;
+ ecore_imf_evas_event_mouse_down_wrap(ev, &ecore_ev);
+ if (ecore_imf_context_filter_event(en->imf_context,
+ ECORE_IMF_EVENT_MOUSE_DOWN,
+ (Ecore_IMF_Event *)&ecore_ev))
+ return;
+ }
+#endif
+
en->select_mod_start = EINA_FALSE;
en->select_mod_end = EINA_FALSE;
if (rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_DEFAULT)
}
}
if (evas_textblock_cursor_compare(tc, en->cursor))
- {
- _edje_emit(rp->edje, "cursor,changed", rp->part->name);
- }
+ _edje_emit(rp->edje, "cursor,changed", rp->part->name);
evas_textblock_cursor_free(tc);
#ifdef HAVE_ECORE_IMF
return;
if (en->double_clicked) return;
+#ifdef HAVE_ECORE_IMF
+ if (en->imf_context)
+ {
+ Ecore_IMF_Event_Mouse_Up ecore_ev;
+ ecore_imf_evas_event_mouse_up_wrap(ev, &ecore_ev);
+ if (ecore_imf_context_filter_event(en->imf_context,
+ ECORE_IMF_EVENT_MOUSE_UP,
+ (Ecore_IMF_Event *)&ecore_ev))
+ return;
+ }
+#endif
+
//printf("[%s] cursor pos : %d\n", __func__, evas_textblock_cursor_pos_get(en->cursor));
tc = evas_object_textblock_cursor_new(rp->object);
if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
(rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_SELECTABLE))
return;
+
+#ifdef HAVE_ECORE_IMF
+ if (en->imf_context)
+ {
+ Ecore_IMF_Event_Mouse_Move ecore_ev;
+ ecore_imf_evas_event_mouse_move_wrap(ev, &ecore_ev);
+ if (ecore_imf_context_filter_event(en->imf_context,
+ ECORE_IMF_EVENT_MOUSE_MOVE,
+ (Ecore_IMF_Event *)&ecore_ev))
+ return;
+ }
+#endif
+
if (rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_BLOCK_HANDLE)
{
_edje_entry_real_part_configure(rp);
{
Edje *ed = (Edje *)data;
- if (evas_focus_get(e) == ed->obj) {
+ if (evas_focus_get(e) == ed->obj)
+ {
_edje_focus_in_cb(data, NULL, NULL, NULL);
- }
+ }
}
static void
{
Edje *ed = (Edje *)data;
- if (evas_focus_get(e) == ed->obj) {
+ if (evas_focus_get(e) == ed->obj)
+ {
_edje_focus_out_cb(data, NULL, NULL, NULL);
- }
+ }
}
/***************************************************************/
ecore_imf_context_input_mode_set(en->imf_context,
(rp->part->entry_mode == EDJE_ENTRY_EDIT_MODE_PASSWORD || rp->part->entry_mode == EDJE_ENTRY_EDIT_MODE_PASSWORD_SHOW_LAST_CHARACTER)?
ECORE_IMF_INPUT_MODE_INVISIBLE : ECORE_IMF_INPUT_MODE_FULL);
+
+ if (rp->part->entry_mode == EDJE_ENTRY_EDIT_MODE_PASSWORD || rp->part->entry_mode == EDJE_ENTRY_EDIT_MODE_PASSWORD_SHOW_LAST_CHARACTER)
+ {
+ ecore_imf_context_input_panel_language_set(en->imf_context, ECORE_IMF_INPUT_PANEL_LANG_ALPHABET);
+ }
#endif /* HAVE_ECORE_IMF */
}
done:
if (en->have_selection)
{
- if (strcmp(ev->str, "")) {
- /* delete selected characters */
- _range_del(en->cursor, rp->object, en);
- _sel_clear(en->cursor, rp->object, en);
- }
+ if (strcmp(ev->str, ""))
+ {
+ /* delete selected characters */
+ _range_del(en->cursor, rp->object, en);
+ _sel_clear(en->cursor, rp->object, en);
+ }
}
/* delete preedit characters */
if (en->have_selection)
{
- if (strcmp(preedit_string, "")) {
- /* delete selected characters */
- _range_del(en->cursor, rp->object, en);
- _sel_clear(en->cursor, rp->object, en);
- }
+ if (strcmp(preedit_string, ""))
+ {
+ /* delete selected characters */
+ _range_del(en->cursor, rp->object, en);
+ _sel_clear(en->cursor, rp->object, en);
+ }
}
/* delete preedit characters */