entry: Enable context menu with mosue down even if the entry is not editable in some case.

Summary:
Even if a entry is not editable, user can select text in the entry.
When the entry has selection, we have to support "copy" option.
@fix

Test Plan:
Precondition: Apply D852 patch for fixing a bug in elementary_test
1. elementary_test -to entry7
2. Select some text in the non-editable entry.
3. Press mouse right button.

Note: You can test it in Desktop profile.

Reviewers: tasn, woohyun, seoz

Differential Revision: https://phab.enlightenment.org/D848
This commit is contained in:
Youngbok Shin 2014-05-14 13:26:33 +01:00 committed by Tom Hacohen
parent 495fe1462c
commit 8730b8d990
1 changed files with 2 additions and 1 deletions

View File

@ -1421,7 +1421,8 @@ _menu_call(Evas_Object *obj)
{
/* prevent stupid blank hoversel */
if (sd->have_selection && sd->password) return;
if (_elm_config->desktop_entry && ((!sd->editable) || (!ownersel))) return;
if (_elm_config->desktop_entry && (!sd->have_selection) && ((!sd->editable) || (!ownersel)))
return;
}
if (sd->hoversel) evas_object_del(sd->hoversel);
else elm_widget_scroll_freeze_push(obj);