From 3c67890009df500116e9dd8692a1b51a7b41b3ff Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Wed, 5 Sep 2018 21:17:40 +0100 Subject: [PATCH] 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 --- src/lib/elementary/elm_code_widget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c index f6f1b680ed..65a3d6c1d8 100644 --- a/src/lib/elementary/elm_code_widget.c +++ b/src/lib/elementary/elm_code_widget.c @@ -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);