From: WooHyun Jung <wh0705.jung@samsung.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 21 Feb 2011 05:53:23 +0000 (05:53 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 21 Feb 2011 05:53:23 +0000 (05:53 +0000)
commita8db98131916a2edd4d8e97cf090239aaf03a2dc
treec0893aca33654c76c0a3b66da0378602ec1fdf13
parent0f6caa492fd25b243f628dd3a3dc903f1b5c27d0
From: WooHyun Jung <wh0705.jung@samsung.com>
Subject: RE: [E-devel] One bug in _edje_key_down_cb func (in
edje_entry.c)

I found one bug in _edje_key_down_cb func (in edje_entry.c)

When I input "Backspace" in an entry object,  _signal_cursor_chagned_func(in
elm_entry.c) is not called.

This is because the following code in _edje_key_down_cb func (in edje_entry.c)
is not called.

 if ((evas_textblock_cursor_compare(tc, en->cursor)) && (!cursor_changed))
    _edje_emit(ed, "cursor,changed", rp->part->name);

Why not called ? Because ~ evas_textblock_cursor_compare(tc, en->cursor)
returns 0.

(i.e. old cursor and current cursor have the same position information)

I think old cursor should keep its position without any updating.

But in evas_textblock_cursor_char_delete() func, called by _backsapce func
(in edje_entry.c) -

old cursor's postion is updated as the current position.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@57199 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/edje_entry.c