forked from enlightenment/efl
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:
parent
9b845e7135
commit
aa7e017fd8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue