Ok, the adventure continues.;-)

elm_entry_cursor_end_set

This does not jump to the end of the entry, but to the *end character*,
so it means, if you type some chars, the text
gets inserted just before the last char.

Some messing with the source:

TMP/st/elementary/src/lib/elm_entry.c:1789:
   edje_object_part_text_cursor_end_set(wd->ent, "elm.text", EDJE_CURSOR_MAIN);

edje/srt/lib/edje_util.c:1989:
        _edje_entry_cursor_end(rp, cur);

edje/srt/lib/edje_entry.c:2501:
   evas_textblock_cursor_node_last(c);

So really, the _edje_entry_cursor_end sets the cursor to the last
*NODE*, which I believe
is the last character.
It seems to me wrong. Because the _edje_entry_cursor_begin sets to the
first node, ie.
to the first character. We miss one position, for example a 3 chars
long entry has 3+1
postitions:
|f|o|o| ("foo" is the entry content, and the | chars indicates the
I-beam position)
So before the 1st char, before the 2nd char, before the 3rd char, and
*after* the 3rd char.

I tried to mess a bit more with the source, because the 'END' key on
the keyboard does
jump to the real end of the entry (ie. after the last char), so it is
somehow possible.
But Im unable to find the correct function to call.

Can somebody help me a bit? Im willing to test.

Best regards,
 Laszlo

------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to