fileselector: add HOLD flag
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Tue, 29 Mar 2016 14:43:07 +0000 (16:43 +0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Tue, 29 Mar 2016 14:49:39 +0000 (16:49 +0200)
adds the hold flag when the keystroke is used.

If this is not done a backspace is used for reducing the search-string
AND for going into the top level directory.

src/lib/elementary/elc_fileselector.c

index 36680ec..0915672 100644 (file)
@@ -1214,6 +1214,7 @@ _files_key_down(void *data, const Eo_Event *event)
        {
 
           elm_entry_entry_append(searchbar, ev->string);
+          ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
        }
      else if (ev->string &&
               *(ev->string) &&
@@ -1227,6 +1228,7 @@ _files_key_down(void *data, const Eo_Event *event)
                memmove(buf, en, strlen(en) -1);
                buf[strlen(en) -1] = '\0';
                elm_entry_entry_set(searchbar, buf);
+               ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
             }
        }