forked from enlightenment/efl
spinner: add possibility to enter negative value.
Summary: Even if spinner's min max values range from -ve to +ve, it wasn't possible to enter -ve values in spinner. @fix T2915 Test Plan: 1. Launch Elementary Test 2. Launch spinner demo 3. Tap on the editable area of first spinner 4. Enter negative value '-' is not allowed to enter even though the min max value of spinner ranges from -5000 to +5000. Reviewers: CHAN, cedric Reviewed By: cedric Maniphest Tasks: T2915 Differential Revision: https://phab.enlightenment.org/D3403 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
94996d6952
commit
99e58b8a43
|
@ -429,9 +429,9 @@ _entry_filter_add(Evas_Object *obj)
|
|||
elm_entry_markup_filter_remove(sd->ent, elm_entry_filter_accept_set, &digits_filter_data);
|
||||
|
||||
if (sd->decimal_points > 0)
|
||||
digits_filter_data.accepted = ".0123456789";
|
||||
digits_filter_data.accepted = "-.0123456789";
|
||||
else
|
||||
digits_filter_data.accepted = "0123456789";
|
||||
digits_filter_data.accepted = "-0123456789";
|
||||
|
||||
elm_entry_markup_filter_append(sd->ent, elm_entry_filter_accept_set, &digits_filter_data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue