spinner: Fix entry not inactive even gets an enter key cb.
authorWoochan Lee <wc0917.lee@samsung.com>
Fri, 24 Apr 2015 07:27:15 +0000 (16:27 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 24 Apr 2015 07:27:15 +0000 (16:27 +0900)
commit4c9e2fa452516540992957a05233bc2cb62a496b
tree8bb04adb1b5d4410bd663ed631f57476d6210de3
parent5b91ca2a3d1e84677cb99d9c19e2f84f7b344d12
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
legacy/elementary/src/lib/elm_spinner.c