forked from enlightenment/efl
edje entry: move ecore_imf_context_cursor_position_set from mouse down event to mouse up event
SVN revision: 83318
This commit is contained in:
parent
57103879f5
commit
7dd5b326d8
|
@ -1,6 +1,7 @@
|
||||||
2013-01-25 Jihoon Kim (jihoon)
|
2013-01-25 Jihoon Kim (jihoon)
|
||||||
|
|
||||||
* Remove ecore_imf_context_reset, cursor update in mouse move event because it's useless.
|
* edje entry : Remove ecore_imf_context_reset, cursor update in mouse move event because it's useless.
|
||||||
|
* edje entry : move ecore_imf_context_cursor_position_set from mouse down event to mouse up event
|
||||||
|
|
||||||
|
|
||||||
2013-01-24 Sung W. Park (sung_)
|
2013-01-24 Sung W. Park (sung_)
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -84,6 +84,7 @@ Improvements:
|
||||||
* rebase dns.c against upstream
|
* rebase dns.c against upstream
|
||||||
* Don't over align data if they are already aligned.
|
* Don't over align data if they are already aligned.
|
||||||
* edje entry: remove ecore_imf_context_reset, cursor update in mouse move event because it's useless.
|
* edje entry: remove ecore_imf_context_reset, cursor update in mouse move event because it's useless.
|
||||||
|
* edje entry: move ecore_imf_context_cursor_position_set from mouse down event to mouse up event.
|
||||||
|
|
||||||
Fixes:
|
Fixes:
|
||||||
* Fix PPC (big endian) image codec bug.
|
* Fix PPC (big endian) image codec bug.
|
||||||
|
|
|
@ -1975,8 +1975,6 @@ _edje_part_mouse_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_
|
||||||
{
|
{
|
||||||
_edje_emit(rp->edje, "cursor,changed", rp->part->name);
|
_edje_emit(rp->edje, "cursor,changed", rp->part->name);
|
||||||
_edje_emit(rp->edje, "cursor,changed,manual", rp->part->name);
|
_edje_emit(rp->edje, "cursor,changed,manual", rp->part->name);
|
||||||
|
|
||||||
_edje_entry_imf_cursor_info_set(en);
|
|
||||||
}
|
}
|
||||||
evas_textblock_cursor_free(tc);
|
evas_textblock_cursor_free(tc);
|
||||||
|
|
||||||
|
@ -1999,7 +1997,6 @@ _edje_part_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
|
||||||
Evas_Textblock_Cursor *tc;
|
Evas_Textblock_Cursor *tc;
|
||||||
if ((!ev) || (ev->button != 1)) return;
|
if ((!ev) || (ev->button != 1)) return;
|
||||||
if (!rp) return;
|
if (!rp) return;
|
||||||
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
|
|
||||||
if (ev->flags & EVAS_BUTTON_TRIPLE_CLICK) return;
|
if (ev->flags & EVAS_BUTTON_TRIPLE_CLICK) return;
|
||||||
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK) return;
|
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK) return;
|
||||||
if ((rp->type != EDJE_RP_TYPE_TEXT) ||
|
if ((rp->type != EDJE_RP_TYPE_TEXT) ||
|
||||||
|
@ -2009,6 +2006,12 @@ _edje_part_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
|
||||||
(rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_SELECTABLE))
|
(rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_SELECTABLE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
|
||||||
|
{
|
||||||
|
_edje_entry_imf_cursor_info_set(en);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_ECORE_IMF
|
#ifdef HAVE_ECORE_IMF
|
||||||
if (en->imf_context)
|
if (en->imf_context)
|
||||||
{
|
{
|
||||||
|
@ -2090,9 +2093,10 @@ _edje_part_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
|
||||||
{
|
{
|
||||||
_edje_emit(rp->edje, "cursor,changed", rp->part->name);
|
_edje_emit(rp->edje, "cursor,changed", rp->part->name);
|
||||||
_edje_emit(rp->edje, "cursor,changed,manual", rp->part->name);
|
_edje_emit(rp->edje, "cursor,changed,manual", rp->part->name);
|
||||||
|
|
||||||
_edje_entry_imf_cursor_info_set(en);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_edje_entry_imf_cursor_info_set(en);
|
||||||
|
|
||||||
evas_textblock_cursor_free(tc);
|
evas_textblock_cursor_free(tc);
|
||||||
|
|
||||||
_edje_entry_real_part_configure(rp);
|
_edje_entry_real_part_configure(rp);
|
||||||
|
|
Loading…
Reference in New Issue