netstar pushed a commit to branch master. http://git.enlightenment.org/tools/edi.git/commit/?id=514e472cd16ab75f9e8ad12ae0a1f473aebdf05b
commit 514e472cd16ab75f9e8ad12ae0a1f473aebdf05b Author: Al Poole <nets...@gmail.com> Date: Sat Sep 2 11:47:18 2017 +0100 filepanek: set the filepanel focus on editor focus. Tab selection will focus the editor. This fixes occasions when clicking between panels. So the filepanel focus is uniform. Should have thought of doing it this way before. --- src/bin/editor/edi_editor.c | 3 +++ src/bin/mainview/edi_mainview_panel.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/editor/edi_editor.c b/src/bin/editor/edi_editor.c index 27e581b..463e8db 100644 --- a/src/bin/editor/edi_editor.c +++ b/src/bin/editor/edi_editor.c @@ -10,6 +10,7 @@ #include "edi_editor.h" #include "mainview/edi_mainview.h" +#include "edi_filepanel.h" #include "edi_config.h" #include "language/edi_language_provider.h" @@ -982,6 +983,8 @@ _focused_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUS code = elm_code_widget_code_get(editor->entry); filename = elm_code_file_path_get(code->file); + edi_filepanel_select_path(filename); + mtime = ecore_file_mod_time(filename); if ((editor->save_time) && (editor->save_time < mtime)) diff --git a/src/bin/mainview/edi_mainview_panel.c b/src/bin/mainview/edi_mainview_panel.c index 50d57ce..80a7143 100644 --- a/src/bin/mainview/edi_mainview_panel.c +++ b/src/bin/mainview/edi_mainview_panel.c @@ -12,7 +12,6 @@ #include "mainview/edi_mainview_panel.h" #include "mainview/edi_mainview.h" -#include "edi_filepanel.h" #include "editor/edi_editor.h" #include "edi_content_provider.h" @@ -283,8 +282,6 @@ _promote(void *data, Evas_Object *obj EINA_UNUSED, editor = (Edi_Editor *)evas_object_data_get(panel->current->view, "editor"); if (editor) elm_object_focus_set(editor->entry, EINA_TRUE); - - edi_filepanel_select_path(item->path); } static void --