spinner: add entry filter for accepted only digits and "."

Desktop / Enlightenment / Elementary - woochan lee [samsung.com] - 9 November 2015 18:28 UTC

Summary: When spinner activated with entry, user can input any characters in entry. It degrades the usability.

Add filter for only can input numbers and "." for case of decimal point existing.

I will add entry filter for limit size as well after this commit. This spinner features may help for app developer and users too.

@feature

Test Plan: Run elementary_test Test various spinner format for check this.

Reviewers: Hermet, cedric

Subscribers: id213sin, shilpasingh

Differential Revision: https://phab.enlightenment.org/D3299

4b0f40e spinner: add entry filter for accepted only digits and "."
src/lib/elm_spinner.c | 47 ++++++++++++++++++++++++++++++++++++++++++
src/lib/elm_widget_spinner.h | 1 +
2 files changed, 48 insertions(+)

Upstream: git.enlightenment.org


  • Share