From df396c02f7a3000276e6bf44868902c1a681c575 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Mon, 16 Sep 2013 00:14:50 +0900 Subject: [PATCH] elm_flip.c: set focus to the flip's content object when flip go to is called. --- legacy/elementary/ChangeLog | 5 +++++ legacy/elementary/NEWS | 1 + legacy/elementary/src/lib/elm_flip.c | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog index e4d978097d..dde64e4ce9 100644 --- a/legacy/elementary/ChangeLog +++ b/legacy/elementary/ChangeLog @@ -1620,3 +1620,8 @@ 2013-09-14 Daniel Juyung Seo (SeoZ) * spinner : fixed arrow key focus movement bug. + +2013-09-15 Daniel Juyung Seo (SeoZ) + + * flip : set the focus to it's content object when flip go to is called + while flip is focused. diff --git a/legacy/elementary/NEWS b/legacy/elementary/NEWS index ffd4a8739d..73be6e9475 100644 --- a/legacy/elementary/NEWS +++ b/legacy/elementary/NEWS @@ -136,6 +136,7 @@ Improvements: * Popup: Support "language,changed" smart callback. * Add hide effect for notify. * Widget: Improve performance in applying widget theme. It prevents applying themes more strictly if it tries to apply same theme. This increases the performance hugely in case that user applies a specific theme to the window object. + * Flip now sets the focus to it's content object when flip go to is called while flip is focused. Fixes: * Now elm_datetime_field_limit_set() can set year limits wihtout problems. diff --git a/legacy/elementary/src/lib/elm_flip.c b/legacy/elementary/src/lib/elm_flip.c index eefe4a71fa..a6a662305f 100644 --- a/legacy/elementary/src/lib/elm_flip.c +++ b/legacy/elementary/src/lib/elm_flip.c @@ -1979,6 +1979,13 @@ _elm_flip_go_to(Evas_Object *obj, _configure(obj); // FIXME: end hack evas_object_smart_callback_call(obj, SIG_ANIMATE_BEGIN, NULL); + + // set focus to the content object when flip go to is called + if (elm_object_focus_get(obj)) + { + if (front) elm_object_focus_set(sd->front.content, EINA_TRUE); + else elm_object_focus_set(sd->back.content, EINA_TRUE); + } } EAPI void