search: check for control chars

This commit is contained in:
Alastair Poole 2021-02-25 17:16:13 +00:00
parent 186fb75e29
commit 25fd0d307c
1 changed files with 1 additions and 1 deletions

View File

@ -1846,7 +1846,7 @@ _win_key_down_search(Ui_Data *pd, Evas_Event_Key_Down *ev)
}
else if (ev->string && strcmp(ev->keyname, "BackSpace"))
{
if (isspace(ev->string[0])) return;
if ((isspace(ev->string[0])) || (iscntrl(ev->string[0]))) return;
size_t len = strlen(ev->string);
if (len)
{