woohyun pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=ab4c2efb1fa75637b716cbd14416d8b723d187e8

commit ab4c2efb1fa75637b716cbd14416d8b723d187e8
Author: WooHyun Jung <wh0705.j...@samsung.com>
Date:   Thu Oct 31 16:50:48 2013 +0900

    elementary/elc_ctxpopup.c : Focus-direction-go should be tried after 
checking focus next object.
---
 src/lib/elc_ctxpopup.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index ec6debc..0f26cf4 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -148,22 +148,19 @@ _elm_ctxpopup_smart_event(Eo *obj, void *_pd, va_list 
*list)
      {
         if (sd->box)
           {
-             double degree = 0.0;
-
              if ((!strcmp(ev->key, "Left")) ||
                  (!strcmp(ev->key, "KP_Left")))
-               degree = 270.0;
+               elm_widget_focus_cycle(sd->box, ELM_FOCUS_LEFT);
              else if ((!strcmp(ev->key, "Right")) ||
                       (!strcmp(ev->key, "KP_Right")))
-               degree = 90.0;
+               elm_widget_focus_cycle(sd->box, ELM_FOCUS_RIGHT);
              else if ((!strcmp(ev->key, "Up")) ||
                       (!strcmp(ev->key, "KP_Up")))
-               degree = 0.0;
+               elm_widget_focus_cycle(sd->box, ELM_FOCUS_UP);
              else if ((!strcmp(ev->key, "Down")) ||
                       (!strcmp(ev->key, "KP_Down")))
-               degree = 180.0;
+               elm_widget_focus_cycle(sd->box, ELM_FOCUS_DOWN);
 
-             elm_widget_focus_direction_go(obj, degree);
              ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
              if (ret) *ret = EINA_TRUE;
              return;

-- 


Reply via email to