toolbar: Do not check ev->string for Return key and react on space key.

space key works as same as Return key.
This commit is contained in:
Daniel Juyung Seo 2014-01-21 19:57:22 +09:00
parent fec8441c71
commit 068c9a095f
1 changed files with 2 additions and 1 deletions

View File

@ -666,7 +666,8 @@ _elm_toolbar_smart_event(Eo *obj, void *_pd, va_list *list)
if (!sd->items) return;
if ((!strcmp(ev->key, "Return")) ||
((!strcmp(ev->key, "KP_Enter")) && !ev->string))
(!strcmp(ev->key, "KP_Enter")) ||
(!strcmp(ev->key, "space")))
{
if (sd->highlighted_item)
_item_select(sd->highlighted_item);