Bug 309339

Summary: [Bidi 3.6] :Caret and cursor positions are not in sync in WYSIWYG document
Product: [Tools] GEF Reporter: Maha Moustafa <maham>
Component: GEF-Legacy GEF (MVC)Assignee: Anthony Hunter <ahunter.eclipse>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse, camle, dsayed, kitlo, mfadl
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Maha Moustafa CLA 2010-04-15 11:53:06 EDT
Build Identifier: I20100313-1044

Caret and cursor positions are not in sync in WYSIWYG document therefore the HOME, END ,RIGHT_ARROW and LEFT_ARROW do not work appropriately 

Reproducible: Always

Steps to Reproduce:
1. Launch eclipse with Arabic locale (eclipse.exe - nl ar_EG)

2. Create a file using the WYSIWYG document file wizard.

3. Try inserting mixed Arabic and English text.  

4. Then click on the line or move using up and down keys, try LEFT_ARROW, RIGHT_ARROW, HOME and END, inspect the cursor and caret movement in this editor


Expected Results


1. Keys like LEFT_ARROW, RIGHT_ARROW, HOME and END should work appropriately, 

2. Caret and cursor position should be in sync


Actual Results

1. When we press HOME or END, the cursor doesn’t move to the corresponding position although the caret goes to it.
2. When you click anywhere within a line, and press backspace, the last letters of the line are the ones being deleted, not where the cursor shows
3. Pressing RIGHT_ARROW and LEFT_ARROW keys don’t work properly, also the caret and the cursor are not in sync.

Note : On Windows vista, the caret and the cursor position are not in sync using the LEFT_ARROW and RIGHT_ARROW keys. Although they work fine when using the HOME/END buttons