Fix #10023: Allow negative input in text fields when needed (#10112)