summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2014-05-14 21:50:31 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-05-14 21:50:31 +0900
commit687d91b8a1a5242600d64041898d4ce9a1a5353e (patch)
treebcaa5ed93541524d3184ef713598df4b9a4b21c6
parentc7551bd7d5eb550036edcdf6e4b1861df3dc08c5 (diff)
hoversel: item-loop should happen on UP/DOWN Key in case of vertical hoversel and on LEFT/RIGHT Key in case of horizontal hoversel.
Summary: Earlier focus was moving to top item from bottom item on LEFT key and to bottom item on RIGHT Key in case of vertical hoversel. @fix Test Plan: elementary_test -to "Hoversel Focus" Reviewers: raster, seoz Reviewed By: seoz CC: seoz, chinmaya061 Differential Revision: https://phab.enlightenment.org/D858
-rw-r--r--src/lib/elc_hoversel.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c
index b4fdc4932..a0578dfa8 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -513,7 +513,8 @@ _key_action_move(Evas_Object *obj, const char *params)
513 513
514 if (!strcmp(dir, "down")) 514 if (!strcmp(dir, "down"))
515 { 515 {
516 if (item_focused_get(sd) == litem) 516 if ((!sd->horizontal) &&
517 (item_focused_get(sd) == litem))
517 { 518 {
518 elm_object_focus_set(VIEW(fitem), EINA_TRUE); 519 elm_object_focus_set(VIEW(fitem), EINA_TRUE);
519 return EINA_TRUE; 520 return EINA_TRUE;
@@ -523,7 +524,8 @@ _key_action_move(Evas_Object *obj, const char *params)
523 } 524 }
524 else if (!strcmp(dir, "up")) 525 else if (!strcmp(dir, "up"))
525 { 526 {
526 if (item_focused_get(sd) == fitem) 527 if ((!sd->horizontal) &&
528 (item_focused_get(sd) == fitem))
527 { 529 {
528 elm_object_focus_set(VIEW(litem), EINA_TRUE); 530 elm_object_focus_set(VIEW(litem), EINA_TRUE);
529 return EINA_TRUE; 531 return EINA_TRUE;
@@ -533,7 +535,8 @@ _key_action_move(Evas_Object *obj, const char *params)
533 } 535 }
534 else if (!strcmp(dir, "left")) 536 else if (!strcmp(dir, "left"))
535 { 537 {
536 if (item_focused_get(sd) == fitem) 538 if (sd->horizontal &&
539 (item_focused_get(sd) == fitem))
537 { 540 {
538 elm_object_focus_set(VIEW(litem), EINA_TRUE); 541 elm_object_focus_set(VIEW(litem), EINA_TRUE);
539 return EINA_TRUE; 542 return EINA_TRUE;
@@ -543,7 +546,8 @@ _key_action_move(Evas_Object *obj, const char *params)
543 } 546 }
544 else if (!strcmp(dir, "right")) 547 else if (!strcmp(dir, "right"))
545 { 548 {
546 if (item_focused_get(sd) == litem) 549 if (sd->horizontal &&
550 (item_focused_get(sd) == litem))
547 { 551 {
548 elm_object_focus_set(VIEW(fitem), EINA_TRUE); 552 elm_object_focus_set(VIEW(fitem), EINA_TRUE);
549 return EINA_TRUE; 553 return EINA_TRUE;