forked from enlightenment/efl
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 Reviewed By: ajwillia.ms Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6986
This commit is contained in:
parent
4c53151096
commit
f747e35f48
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue