elm_code: make the hoversel not focusable.

Summary: Disabling focus prevents incorrect operations.

Test Plan:
With EDI, use mouse (cut/copy/paste).
Due to the focus passing to the hoversel we break focus in the
application when it's lost. By disabling this cut/copy/paste
works as it should. A similar approach was used in elm_entry.

Reviewers: ajwillia.ms

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6986
This commit is contained in:
Alastair Poole 2018-09-05 21:17:40 +01:00 committed by Andy Williams
parent 60caff3a1c
commit 3c67890009
1 changed files with 1 additions and 0 deletions

View File

@ -934,6 +934,7 @@ _popup_menu_show(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
if (pd->hoversel) evas_object_del(pd->hoversel);
pd->hoversel = elm_hoversel_add(obj);
elm_object_tree_focus_allow_set(pd->hoversel, EINA_FALSE);
elm_widget_sub_object_add(obj, pd->hoversel);
top = elm_widget_top_get(obj);