Bug 48139 - RTL: right/left arrow keys ignore unicode bidi control characters
Summary: RTL: right/left arrow keys ignore unicode bidi control characters
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 25321
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-22 10:42 PDT by Xiaomei Ji
Modified: 2010-10-22 10:45 PDT (History)
3 users (show)

See Also:


Attachments
test file (109 bytes, text/html)
2010-10-22 10:42 PDT, Xiaomei Ji
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xiaomei Ji 2010-10-22 10:42:07 PDT
Created attachment 71575 [details]
test file

After the fix of 25321, unicode bidi control characters are included in InlineTextBox, arrow key should be able to move caret around them.

Given the test file which contains <div contenteditable>a&#x202b;b!&#x202c;c</div>,
the visual display from left to right is:
a!&#x202b;b&#x202c;c


left/right arrow keys could place caret before and after &#202c;, (moving caret from before 'b' to after 'c' takes 3 right-arrow movements).
but neither is able to distinguish caret before and after &#x202b; (moving caret from before '!' to after 'b' takes only 2 right-arrow movements).