netstar pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=8925c72adfdad08cc43a4d40fa8274eb2e68c63e

commit 8925c72adfdad08cc43a4d40fa8274eb2e68c63e
Author: Al Poole <nets...@gmail.com>
Date:   Wed Aug 30 22:11:09 2017 +0100

    editor: unset focus on tab change.
    
    Summary: This seems to fix the multiple cursors between underlying tabs.
    
    Reviewers: ajwillia.ms
    
    Differential Revision: https://phab.enlightenment.org/D5148
---
 src/bin/mainview/edi_mainview_panel.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/mainview/edi_mainview_panel.c 
b/src/bin/mainview/edi_mainview_panel.c
index fe18f18..16b1d71 100644
--- a/src/bin/mainview/edi_mainview_panel.c
+++ b/src/bin/mainview/edi_mainview_panel.c
@@ -267,8 +267,14 @@ _promote(void *data, Evas_Object *obj EINA_UNUSED,
          const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
 {
    Edi_Mainview_Panel *panel;
+   Edi_Editor *editor;
 
    panel = edi_mainview_panel_for_item_get((Edi_Mainview_Item *)data);
+
+   editor = (Edi_Editor *)evas_object_data_get(panel->current->view, "editor");
+   if (editor)
+     elm_object_focus_set(editor->entry, EINA_FALSE);
+
    edi_mainview_panel_item_select(panel, (Edi_Mainview_Item *)data);
 }
 

-- 


Reply via email to