netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=7eb4adcef55c0885b9ce1e712a01a9cc3d161e35

commit 7eb4adcef55c0885b9ce1e712a01a9cc3d161e35
Author: Alastair Poole <nets...@gmail.com>
Date:   Thu Jan 21 13:14:13 2021 +0000

    search: more.
---
 src/bin/ui/ui_process_list.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/bin/ui/ui_process_list.c b/src/bin/ui/ui_process_list.c
index 5fa0e13..6f112b7 100644
--- a/src/bin/ui/ui_process_list.c
+++ b/src/bin/ui/ui_process_list.c
@@ -1471,18 +1471,13 @@ _search_empty_cb(void *data)
 static void
 _search_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
 {
-   Evas_Event_Key_Down *ev;
    const char *text;
    Ui_Data *pd;
    size_t len;
 
    pd = data;
-   ev = event_info;
-
-   if (!ev || !ev->keyname)
-     return;
-
    text = elm_object_text_get(obj);
+
    if (text)
      {
         len = strlen(text);
@@ -1546,10 +1541,11 @@ _win_key_down_search(Ui_Data *pd, Evas_Event_Key_Down 
*ev)
    else if (ev->string)
      {
         size_t len = strlen(ev->string);
-       if (len)
+        if (len)
           {
-            elm_entry_entry_append(pd->search_entry, ev->string);
-            elm_entry_cursor_pos_set(pd->search_entry, len);
+             elm_entry_entry_append(pd->search_entry, ev->string);
+             elm_entry_cursor_pos_set(pd->search_entry, len);
+             _search_key_down_cb(pd, NULL, pd->search_entry, NULL);
          }
         evas_object_geometry_get(pd->win, NULL, NULL, &w, &h);
         evas_object_move(pd->search_pop, w / 2, h / 2);

-- 


Reply via email to