Hi, EFL developers.
Unlike other widget, gengrid processes only the "Return" key for selecting
item.
This patch makes gengrid be able to process KP_Enter and space key for
selecting item.
Thanks.
Index: elm_gengrid.c
===================================================================
--- elm_gengrid.c (revision 57479)
+++ elm_gengrid.c (working copy)
@@ -431,7 +431,9 @@ _event_hook(Evas_Object *obj,
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
return EINA_TRUE;
}
- else if (!strcmp(ev->keyname, "Return"))
+ else if ((!strcmp(ev->keyname, "Return")) ||
+ (!strcmp(ev->keyname, "KP_Enter")) ||
+ (!strcmp(ev->keyname, "space")))
{
item = elm_gengrid_selected_item_get(obj);
evas_object_smart_callback_call(item->wd->self, "clicked", item);
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel