From: tasn Date: Tue, 17 Jan 2012 08:38:37 +0000 (+0000) Subject: Edje entry: Handle entry newline legacy mode better. X-Git-Tag: submit/trunk/20120815.180907~278 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e13219b346235c1b3320405a00d41bf14640015;p=profile%2Fivi%2Fedje.git Edje entry: Handle entry newline legacy mode better. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@67265 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_entry.c b/src/lib/edje_entry.c index 87bf266..e48fc7a 100644 --- a/src/lib/edje_entry.c +++ b/src/lib/edje_entry.c @@ -1435,7 +1435,8 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v info->change.insert.pos = evas_textblock_cursor_pos_get(en->cursor); - if (shift) + if (shift || + evas_object_textblock_legacy_newline_get(rp->object)) { //yy // evas_textblock_cursor_format_prepend(en->cursor, "br"); @@ -2031,6 +2032,8 @@ _edje_entry_real_part_init(Edje_Real_Part *rp) evas_object_pass_events_set(en->cursor_fg, EINA_TRUE); _edje_subobj_register(en->rp->edje, en->cursor_fg); + evas_object_textblock_legacy_newline_set(rp->object, EINA_TRUE); + if (rp->part->entry_mode >= EDJE_ENTRY_EDIT_MODE_EDITABLE) { evas_object_show(en->cursor_bg);