Ctrl+Home and Ctrl+End problems (apparent with RTL)

RESOLVED FIXED

Status

defect
RESOLVED FIXED
15 years ago
11 years ago

People

(Reporter: eyalroz, Assigned: sspitzer)

Tracking

({intl, rtl})

Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Pressing Ctrl+Home bring you to the top-left of the message, not the beginning
of it; pressing Ctrl+End bring you to the bottom-right of the message, not the
end of it. That means that if your message direction RTL instead of LTR,
Ctrl+Home and Ctrl+End do not bring you to the start and the end of the message,
respectively.
Problem code is at

http://lxr.mozilla.org/seamonkey/source/layout/html/base/src/nsPresShell.cpp#324
6

it does not take BiDi into account. In fact, it is poor design. Instead of 
seeking to some desired set of (x,y) coordinates - and then using the click 
handler, aarrggh!! - the code should find the first element, in logical element 
order, within the frame, and position the cursor before it.

I think I'll open a separate bug.
Depends on: 263309
Blocks: caretnav
Product: MailNews → Core
IIRC, fixing 263309 automatically makes this go away. Someone please check this
with a trunk build from after the checking for 263309.
fixed by bug 263309 and bug 278197
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.