forked from enlightenment/enlightenment
* [Entry] Double click on the entry selects all the text of the entry
SVN revision: 24935
This commit is contained in:
parent
e2666fbd29
commit
a2bf3d8a6d
|
@ -392,7 +392,7 @@ _e_entry_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
changed = e_editable_delete(editable, start_pos, end_pos);
|
||||
}
|
||||
}
|
||||
else if (strcmp(event->keyname, "v") == 0)
|
||||
else if ((sd->enabled) && (strcmp(event->keyname, "v") == 0))
|
||||
{
|
||||
if ((win = e_win_evas_object_win_get(obj)))
|
||||
ecore_x_selection_clipboard_request(win->evas_win,
|
||||
|
@ -426,6 +426,12 @@ _e_entry_mouse_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
if (!(event = event_info))
|
||||
return;
|
||||
|
||||
if (event->button == 1)
|
||||
{
|
||||
if (event->flags & EVAS_BUTTON_DOUBLE_CLICK)
|
||||
e_editable_select_all(sd->editable_object);
|
||||
else
|
||||
{
|
||||
evas_object_geometry_get(sd->editable_object, &ox, &oy, NULL, NULL);
|
||||
pos = e_editable_pos_get_from_coords(sd->editable_object,
|
||||
event->canvas.x - ox,
|
||||
|
@ -438,6 +444,8 @@ _e_entry_mouse_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
|
||||
sd->selection_dragging = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Called when the entry object is released by the mouse */
|
||||
|
|
Loading…
Reference in New Issue