Closed Bug 308017 Opened 20 years ago Closed 20 years ago

Bidi: up/down-arrow sometimes behave incorrectly after switching keyboard layout

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.8.1

People

(Reporter: uriber, Assigned: uriber)

References

()

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

In the following testcase, in the top (RTL) textarea: https://bugzilla.mozilla.org/attachment.cgi?id=193730 1. place the caret to the left of the "E" 2. press down-arrow 3. press up-arrow 4. switch to an RTL keyboard layout. The caret correctly moves to the right of the "h". 5. Press down-arrow Notice that the caret will move to the same place it moved after step 2, i.e. below the "E", instead of below the "h". The fix should be calling InvalidateDesiredX() in nsTypedSelection::SelectionLanguageChange().
Attached patch patchSplinter Review
Nothing much to say here.
Assignee: mozilla → uriber
Status: NEW → ASSIGNED
Attachment #195632 - Flags: superreview?(roc)
Attachment #195632 - Flags: review?(smontagu)
Target Milestone: --- → mozilla1.9alpha
Attachment #195632 - Flags: review?(smontagu) → review+
Attachment #195632 - Flags: superreview?(roc) → superreview+
Checking in layout/generic/nsSelection.cpp; /cvsroot/mozilla/layout/generic/nsSelection.cpp,v <-- nsSelection.cpp new revision: 3.205; previous revision: 3.204 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attachment #195632 - Flags: approval1.8.1?
Attachment #195632 - Flags: approval1.8.1? → branch-1.8.1?(roc)
Attachment #195632 - Flags: approval-branch-1.8.1?(roc) → approval-branch-1.8.1+
Checked in to 1.8.1 branch: Checking in mozilla/layout/generic/nsSelection.cpp; /cvsroot/mozilla/layout/generic/nsSelection.cpp,v <-- nsSelection.cpp new revision: 3.199.2.4; previous revision: 3.199.2.3 done
Keywords: fixed1.8.1
Target Milestone: mozilla1.9alpha → mozilla1.8.1
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: