ajwillia-ms pushed a commit to branch efl-1.21.

http://git.enlightenment.org/core/efl.git/commit/?id=3c67890009df500116e9dd8692a1b51a7b41b3ff

commit 3c67890009df500116e9dd8692a1b51a7b41b3ff
Author: Alastair Poole <nets...@gmail.com>
Date:   Wed Sep 5 21:17:40 2018 +0100

    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);
 

-- 


Reply via email to