diff options
author | Woochan Lee <wc0917.lee@samsung.com> | 2015-04-24 16:27:15 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2015-04-24 16:27:15 +0900 |
commit | 96c6cda2c5e803b70cf75c985337c457e383737c (patch) | |
tree | 8ad3321e26e01e50410e3439f7944f17c5f593a4 | |
parent | ab83df3467817a87c29bc077f0a41bef15749161 (diff) | |
download | elementary-96c6cda2c5e803b70cf75c985337c457e383737c.tar.gz |
spinner: Fix entry not inactive even gets an enter key cb.
Summary:
The entry inactive signal emitted when finish spinner value set.
but the active signal emitted after that. so it makes weird view state.
The function 'key_action_toggle()' called twice. (for entry, spinner)
event propagate called this func twice and its make this issue.
This patch makes to ignore toggle event when entry is not visible.
T2262
Test Plan:
Run elementary_test, execute spinner widget sample.
Click the first spinner.
Input something on entry.
Press enter key.
Check the issue.
Reviewers: raster, Hermet
Subscribers: kuuko
Differential Revision: https://phab.enlightenment.org/D2411
-rw-r--r-- | src/lib/elm_spinner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c index 90d602ae5..2262e7770 100644 --- a/src/lib/elm_spinner.c +++ b/src/lib/elm_spinner.c @@ -456,7 +456,7 @@ _key_action_toggle(Evas_Object *obj, const char *params EINA_UNUSED) { ELM_SPINNER_DATA_GET(obj, sd); if (sd->spin_timer) _spin_stop(obj); - else _entry_toggle_cb(NULL, obj, NULL, NULL); + else if (sd->entry_visible) _entry_toggle_cb(NULL, obj, NULL, NULL); return EINA_FALSE; } |