elm_flip.c: set focus to the flip's content object when flip go to is called.

This commit is contained in:
Daniel Juyung Seo 2013-09-16 00:14:50 +09:00
parent 4db8363208
commit df396c02f7
3 changed files with 13 additions and 0 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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