forked from enlightenment/enventor
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:
parent
339298a01b
commit
9e81a5f263
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue