[Webkit-unassigned] [Bug 24303] Using keyboard select RTL text, Highlight goes to opposite direction from FF&IE

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 3 17:35:19 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=24303





------- Comment #4 from xji at chromium.org  2009-03-03 17:35 PDT -------
The character and word text selection (using shift-arrow and ctrl-shift-arrow)
difference of Webkit and FF/IE is:
although they all use logical order in text selection in LTR text box,
in RTL text box, Webkit still use logical order (shift+right arrow moves text
forward, and shift+left arrow moves text backward), but FF/IE uses reversed
logical order (shift+right arrow moves text backward, and shift+left arrow
moves text forward).

If this is a bug in WebKit,
can we change SelectionController::modifyExtendingRightForward(),
in the cases of CharacterGranularity and WordGranularity, check whether
"pos.deepEquivalent().node()->renderer()->style()->direction() ==
WebCore::RTL",
extend selection to leftBackward if it is RTL, and extend selection to
rightForward if it is LTR?

Or maybe introduce a new method to handle the forward/backward based on element
style as above.

Same applies to SelectionController::modifyExtendingLeftBackward().

Please let me know whether this is a bug and whether the above works without
complication, and I can start to work on the fix.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list