jaehyun pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=9fac52134c532440a120b512dff1d5bea0a21ddb
commit 9fac52134c532440a120b512dff1d5bea0a21ddb Author: Yeongjong Lee <clean...@naver.com> Date: Fri Dec 1 12:05:10 2017 +0900 efl_ui_spin_button: check focus state Summary: Because toggle_entry function control entry focus, it need to check focus state in focus changed callback Test Plan: 1. elementary_test - Efl.Ui.Spin.Button 2. Click the entry of spin_button Reviewers: Jaehyun_Cho, CHAN Reviewed By: Jaehyun_Cho Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5569 --- src/lib/elementary/efl_ui_spin_button.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/elementary/efl_ui_spin_button.c b/src/lib/elementary/efl_ui_spin_button.c index 23e149af32..059c3786c1 100644 --- a/src/lib/elementary/efl_ui_spin_button.c +++ b/src/lib/elementary/efl_ui_spin_button.c @@ -494,9 +494,10 @@ _inc_dec_button_mouse_move_cb(void *data, const Efl_Event *event) } static void -_text_button_focus_changed_cb(void *data, const Efl_Event *event EINA_UNUSED) +_text_button_focus_changed_cb(void *data, const Efl_Event *event) { - _toggle_entry(data); + if (efl_ui_focus_object_focus_get(event->object)) + _toggle_entry(data); } static void @@ -506,9 +507,10 @@ _entry_activated_cb(void *data, const Efl_Event *event EINA_UNUSED) } static void -_entry_focus_changed_cb(void *data, const Efl_Event *event EINA_UNUSED) +_entry_focus_changed_cb(void *data, const Efl_Event *event) { - _toggle_entry(data); + if (!efl_ui_focus_object_focus_get(event->object)) + _toggle_entry(data); } static void --