mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-18 18:22:01 +08:00
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 ofc269932c4e,dccddcdd59and1c16055713from master)