Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 438632

Summary: [Text] Focussing a text field by TAB does not select all text
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.2   
Target Milestone: 3.0 M4   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ralf Sternberg CLA 2014-07-01 08:34:14 EDT
When focussing a Text field using the TAB key, the selection is set to [0,0] even when the widget contains a text. In SWT (GTK), all text is selected. This seems to be the standard behavior of forms, it can also be seen in HTML forms.
Comment 1 Ivan Furnadjiev CLA 2014-07-04 05:30:36 EDT
Not on Windows SWT and I remember that we agreed to keep the Windows behavior. Nevertheless, I think that the GTK behavior fits better for a Web-based application.
Comment 2 Ivan Furnadjiev CLA 2014-07-04 05:35:43 EDT
... BTW is the behavior the same for single and multi Text widget?
Comment 3 Ralf Sternberg CLA 2014-07-04 06:13:24 EDT
(In reply to Ivan Furnadjiev from comment #2)
> ... BTW is the behavior the same for single and multi Text widget?

No. For multi-line text fields, the cursor goes before the first character.

However, who would want to prepend text? I guess most users would either want to replace text (select all) or to append text (selection after last char).
Comment 4 Ivan Furnadjiev CLA 2014-12-01 09:56:09 EST
Fixed with change https://git.eclipse.org/r/#/c/36611/