forked from enlightenment/enventor
auto_comp: Reset queue when arrow keys are pressed.
Summary: Reset queue when arrow keys are pressed(when cursor is moved without character input). Reviewers: Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D1626
This commit is contained in:
parent
bf59f2c8da
commit
ae90b70c57
|
@ -518,7 +518,16 @@ Eina_Bool
|
||||||
autocomp_event_dispatch(const char *key)
|
autocomp_event_dispatch(const char *key)
|
||||||
{
|
{
|
||||||
autocomp_data *ad = g_ad;
|
autocomp_data *ad = g_ad;
|
||||||
if (!ad || !ad->anchor_visible) return EINA_FALSE;
|
if (!ad) return EINA_FALSE;
|
||||||
|
|
||||||
|
//Reset queue.
|
||||||
|
if (!ad->anchor_visible)
|
||||||
|
{
|
||||||
|
if (!strcmp(key, "Up") || !strcmp(key, "Down") || !strcmp(key, "Left") ||
|
||||||
|
!strcmp(key, "Right"))
|
||||||
|
queue_reset(ad);
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
//Cancel the auto complete.
|
//Cancel the auto complete.
|
||||||
if (!strcmp(key, "BackSpace"))
|
if (!strcmp(key, "BackSpace"))
|
||||||
|
|
Loading…
Reference in New Issue