woohyun pushed a commit to branch elementary-1.7.

commit 383d4406ef529fb94abc701652d62291d1a2b368
Author: WooHyun Jung <[email protected]>
Date:   Tue Apr 9 22:38:47 2013 +0900

    When ctxpopup includes elm_list, elm_list should get focus when ctxpopup is 
shown.
---
 ChangeLog              | 4 ++++
 src/lib/elc_ctxpopup.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 03dd1c3..8f7856f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -813,3 +813,7 @@
 
         * Fix layout_example_02.
         * Fix hoversel_example_01.
+
+2013-04-09  WooHyun Jung
+
+        * When ctxpopup includes elm_list, elm_list should get focus when 
ctxpopup is shown.
diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index 3327b01..1379ddf 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -1012,7 +1012,7 @@ _ctxpopup_show(void *data __UNUSED__, Evas *e __UNUSED__, 
Evas_Object *obj,
      {
         elm_list_go(wd->list);
         wd->visible = EINA_TRUE;
-        elm_object_focus_set(obj, EINA_TRUE);
+        elm_object_focus_set(wd->list, EINA_TRUE);
         return;
      }
 

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to