Autocomplete: fix behaviour of the Backspace.

Summary:
For case when the list of candidates is shown after typing
'.', "backspace" didn't work. It happens because the queue was
already cleared, when the user press "backspace". But at the
same time list of the candidates is presented and shown.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2714
This commit is contained in:
Mykyta Biliavskyi 2015-06-22 14:09:14 +09:00 committed by ChunEon Park
parent 339298a01b
commit 9e81a5f263
1 changed files with 2 additions and 1 deletions

View File

@ -348,7 +348,8 @@ anchor_unfocused_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
static void
queue_reset(autocomp_data *ad)
{
if (ad->queue_pos == 0) return;
if (!ad->queue_pos && !ad->anchor_visible)
return;
ad->queue_pos = 0;
memset(ad->queue, 0x0, sizeof(ad->queue));
entry_anchor_off(ad);