cf93b63ca1
We can't perform the check for the invalid number in IsCharOk() because it's perfectly normal for the number to be temporarily invalid while it's being entered and, worse, sometimes this can't be avoided at all and the existing behaviour prevented the user from entering _anything_ into a control limited to the values between 10 and 20. Do ensure that the control still has a correct value after losing focus. See #12968, #23561. (combined cherry pick of c269932c4e8ed0c0e4a2554b928ae2b55f70ad8e, dccddcdd59b9a11564b809c516b418356db21718 and 1c160557132f76423dbc0acb3a01b1f64f016dd1 from master) |
||
---|---|---|
.. | ||
valnum.cpp | ||
valtext.cpp |