}
}
}
- if (rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_EXPLICIT)
+ if (en->select_allow)
{
- if (en->select_allow)
+ if (rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_EXPLICIT)
{
if (en->had_sel)
{
if (en->select_mod_end)
- _sel_extend(en->ed, en->cursor, rp->object, en);
+ _sel_extend(en->ed, en->cursor, rp->object, en);
else if (en->select_mod_start)
- _sel_preextend(en->ed, en->cursor, rp->object, en);
+ _sel_preextend(en->ed, en->cursor, rp->object, en);
}
else
- _sel_extend(en->ed, en->cursor, rp->object, en);
+ _sel_extend(en->ed, en->cursor, rp->object, en);
//evas_textblock_cursor_copy(en->cursor, en->sel_end);
}
+ else
+ {
+ evas_textblock_cursor_copy(en->cursor, en->sel_end);
+ }
}
- else
- evas_textblock_cursor_copy(en->cursor, en->sel_end);
if (en->selecting)
{
if (en->have_selection)
_curs_lin_end(en->cursor, rp->object, en);
}
}
- if (rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_EXPLICIT)
+ if (en->select_allow)
{
- if (en->select_allow)
+ if (rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_EXPLICIT)
{
if (en->had_sel)
{
if (en->select_mod_end)
- _sel_extend(en->ed, en->cursor, rp->object, en);
+ _sel_extend(en->ed, en->cursor, rp->object, en);
else if (en->select_mod_start)
- _sel_preextend(en->ed, en->cursor, rp->object, en);
+ _sel_preextend(en->ed, en->cursor, rp->object, en);
}
else
- _sel_extend(en->ed, en->cursor, rp->object, en);
+ _sel_extend(en->ed, en->cursor, rp->object, en);
}
- }
- else
- {
- _sel_extend(en->ed, en->cursor, rp->object, en);
- }
- if (en->select_allow)
- {
+ else
+ {
+ _sel_extend(en->ed, en->cursor, rp->object, en);
+ }
+
if (evas_textblock_cursor_compare(en->sel_start, en->sel_end) != 0)
_sel_enable(en->ed, en->cursor, rp->object, en);
if (en->have_selection)
(!rp->typedata.text)) return;
en = rp->typedata.text->entry_data;
if (!en) return;
- if (rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_DEFAULT)
- return;
+
en->select_allow = allow;
}