fileselector: add HOLD flag

adds the hold flag when the keystroke is used.

If this is not done a backspace is used for reducing the search-string
AND for going into the top level directory.
This commit is contained in:
Marcel Hollerbach 2016-03-29 16:43:07 +02:00
parent 9b845e7135
commit aa7e017fd8
1 changed files with 2 additions and 0 deletions

View File

@ -1214,6 +1214,7 @@ _files_key_down(void *data, const Eo_Event *event)
{
elm_entry_entry_append(searchbar, ev->string);
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
}
else if (ev->string &&
*(ev->string) &&
@ -1227,6 +1228,7 @@ _files_key_down(void *data, const Eo_Event *event)
memmove(buf, en, strlen(en) -1);
buf[strlen(en) -1] = '\0';
elm_entry_entry_set(searchbar, buf);
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
}
}