Bug 576142 - Text cursor / caret vanishes in editor when using SWT Browser control in other view (e.g. JavaDoc)
Summary: Text cursor / caret vanishes in editor when using SWT Browser control in othe...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.21   Edit
Hardware: PC Windows 10
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-21 06:09 EDT by Sebastian Ratz CLA
Modified: 2021-09-22 07:21 EDT (History)
2 users (show)

See Also:


Attachments
demo/screen recording of the problem (1.45 MB, video/mp4)
2021-09-21 06:09 EDT, Sebastian Ratz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Ratz CLA 2021-09-21 06:09:34 EDT
Created attachment 287174 [details]
demo/screen recording of the problem

Sometimes, when working with views that embed an SWT Browser control, switching between the views can cause the caret to be lost in the editor.

Steps to reproduce:
- Open a .java file
- Open the JavaDoc view + enable link-with-editor
- Switch between the JavaDoc view and the editor by clicking in them.
- Sooner or later the caret in the editor will vanish.

See attached a screen recording with a short demo.

The caret will re-appear once the editor area loses and gains focus again.

This seems to be a problem in the interaction between editor focus handling and Browser#setText(). Hence, not sure if SWT or UI would be the right component.

I could only reproduce this on Windows (with the IE browser engine).