From: WooHyun Jung <wh0705.jung@samsung.com>
authorWooHyun Jung <wh0705.jung@samsung.com>
Mon, 21 Feb 2011 05:53:23 +0000 (05:53 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Mon, 21 Feb 2011 05:53:23 +0000 (05:53 +0000)
commit4274d39f0350b7804c9f62fe67a30ce79ea03a82
tree93cd1d6764c6123d71cc01fc7da885bf3acdc574
parentd125dcecb1cfa3650e88ec2664d6d9d3a5fd381e
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.

SVN revision: 57199
legacy/edje/src/lib/edje_entry.c