hide filesystem search entry when all text has been deleted

This commit is contained in:
Mike Blumenkrantz 2016-04-30 14:42:15 -04:00
parent 08ee5e766b
commit 3f5dda8e9c
1 changed files with 11 additions and 1 deletions

View File

@ -1278,7 +1278,17 @@ filesystem_entry_key(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *o
if (!filesystem_idler)
filesystem_idler = ecore_idler_add(filesystem_idler_cb, ly);
if (!strcmp(ev->key, "BackSpace"))
filesystem_idler_pos = NULL;
{
const char *str;
filesystem_idler_pos = NULL;
str = elm_entry_entry_get(filesystem_entry);
if ((!str) || (!str[0]))
{
filesystem_entry_hide(ly);
E_FREE_FUNC(filesystem_idler, ecore_idler_del);
}
}
}
elm_layout_signal_emit(layout, "empc,key,down", "empc");
}