Bug 286108 - Text.setText() causes text widget to gain focus in IE8
Summary: Text.setText() causes text widget to gain focus in IE8
Status: RESOLVED DUPLICATE of bug 262908
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-08-10 06:42 EDT by Albina Pace CLA
Modified: 2009-09-03 07:28 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 Albina Pace CLA 2009-08-10 06:42:58 EDT
If setText() is called on a text widget, it will also gain focus.
Below is a snippet for a text widget with a focus listener which sets the text, and another text widget. When changing focus to the second text field, the cursor returns to the first text field.
This behaviour is only reproduceable in Internet Explorer.

        Text textfield = new Text(composite, SWT.NONE);        
        textfield.addFocusListener(new FocusAdapter() {
        	@Override
        	public void focusLost(FocusEvent e) {
        		textfield.setText("test");
        	}
	});
        Text textfield2 = new Text(composite, SWT.NONE);
Comment 1 Ivan Furnadjiev CLA 2009-08-28 07:35:45 EDT
Albina, there was a bug 262908 exactly as yours which is fixed in 1.2M7. I can't reproduce it with current CVS HEAD too. What is the RAP version used?
Comment 2 Ivan Furnadjiev CLA 2009-09-03 07:28:18 EDT
I will close it as duplicate of bug 262908. Feel free to reopen it if the bug persist.

*** This bug has been marked as a duplicate of bug 262908 ***