hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=ae90b70c57deb3f1a0492d83f469b9208038516e

commit ae90b70c57deb3f1a0492d83f469b9208038516e
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Fri Oct 31 22:02:08 2014 +0900

    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
---
 src/lib/auto_comp.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/lib/auto_comp.c b/src/lib/auto_comp.c
index d3767cf..0485ef3 100644
--- a/src/lib/auto_comp.c
+++ b/src/lib/auto_comp.c
@@ -518,7 +518,16 @@ Eina_Bool
 autocomp_event_dispatch(const char *key)
 {
    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.
    if (!strcmp(key, "BackSpace"))

-- 


Reply via email to