Community
Participate
Working Groups
Our customers have difficulties when trying to enter negative numbers into a IDecimalTextRidget on Windows 7 (and SWT). They start with a minus sign and then the cursor jumps over the decimal point and prevents further input. In more detail (for a DecimalTextRidget with precision 2 and a model value of 0): - The ridget contains the text "0.00" and the whole text is selected - User enters "-" - The text box displays "-.00" and the selection is collapsed, the cursor is on the right edge (after the two zeros) - Any numeric digit that the user enters leads to a red flash since the ridget accepts only two decimals I think the input of a minus sign should switch the number to negative and should not alter the selection. Entering the Keys "-120" should lead to "-120.00" for example. On Cocoa it works well. Here, entering "-" leads to "-|.00" where | denotes the cursor.