Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370527 - DecimalTextRidget: Difficulties entering negative numbers on Windows
Summary: DecimalTextRidget: Difficulties entering negative numbers on Windows
Status: ASSIGNED
Alias: None
Product: Riena
Classification: RT
Component: UI (show other bugs)
Version: 3.0.0   Edit
Hardware: Macintosh Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 03:03 EST by Peter Kullmann CLA
Modified: 2012-04-13 07:39 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Kullmann CLA 2012-02-03 03:03:37 EST
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.