forked from enlightenment/efl
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:
parent
fec8441c71
commit
068c9a095f
|
@ -666,7 +666,8 @@ _elm_toolbar_smart_event(Eo *obj, void *_pd, va_list *list)
|
||||||
if (!sd->items) return;
|
if (!sd->items) return;
|
||||||
|
|
||||||
if ((!strcmp(ev->key, "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)
|
if (sd->highlighted_item)
|
||||||
_item_select(sd->highlighted_item);
|
_item_select(sd->highlighted_item);
|
||||||
|
|
Loading…
Reference in New Issue