From 2933c2faf62fd8e85025808693920e57bf890b52 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Sun, 24 Sep 2017 21:35:15 +0100 Subject: [PATCH] autosuggest: avoid lingering tab-complete suggestions On focus out or mouse downs we invalidate the suggestion --- src/bin/editor/edi_editor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/editor/edi_editor.c b/src/bin/editor/edi_editor.c index b0ffb0b..8e9004f 100644 --- a/src/bin/editor/edi_editor.c +++ b/src/bin/editor/edi_editor.c @@ -882,6 +882,7 @@ _edit_file_changed(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EI editor = (Edi_Editor *)data; + _suggest_hint_hide(editor); if (evas_object_visible_get(editor->suggest_bg)) return; @@ -1227,6 +1228,7 @@ _unfocused_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UN if (_edi_config->autosave) edi_editor_save(editor); + _suggest_hint_hide(editor); if (editor->suggest_bg) evas_object_hide(editor->suggest_bg); @@ -1248,6 +1250,7 @@ _mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, editor = (Edi_Editor *)data; event = (Evas_Event_Mouse_Up *)event_info; + _suggest_hint_hide(editor); if (editor->suggest_bg) evas_object_hide(editor->suggest_bg);