Closed Bug 283939 Opened 20 years ago Closed 19 years ago

UP/DOWN keys does not work correctly in RTL textareas

Categories

(Core :: Layout: Form Controls, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: onatan, Unassigned)

References

()

Details

(Keywords: rtl, testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1

The link is a demo page for the problem, with specific instructions on
reproducing it.
This bug report is actually about two issues.
1. clicking Enter in a table doesn't move the marker down.
2. moving the marker using the arrow keys doesn't always work.

This code is a reduced version of the site I found this problem in. The website
is in Hebrew, but neither my version of XP nor my Firefox are in Hebrew.
This issue was the same in version 1.0, before I upgraded to 1.0.1.

Reproducible: Always

Steps to Reproduce:
In the link.
http://www.sl0th.org/Firefox/test.html
Actual Results:  
The Marker doesn't move as expected.

Expected Results:  
After clicking Enter, the marker should move to a new line.
After pressing UP arrow, the marker should move only one line up.
After pressing DOWN arrow, the marker should move only one line down.

I'll be happy to look at the code, if I only knew where to look. :)
Assignee: firefox → nobody
Component: General → Layout: Form Controls
Product: Firefox → Core
QA Contact: general → layout.form-controls
Version: unspecified → Trunk
Hmm... should this be in Core: Editor?
In Mozilla 2005-02-26-05 trunk Linux, the caret moves down one line on Enter
(correctly). I do see the bug on moving from the last line to the first line
when typing UP (and also going from the first line to last on DOWN).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
Summary: erratic behaviour of arrow and Enter keys inside tables → UP/DOWN keys does not work correctly in RTL textareas
Attached file Testcase
Works for me using the latest trunk build of Firefox.
(In reply to comment #4)
> Works for me using the latest trunk build of Firefox.

The bug is present, but still unfixed using:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
Firefox/1.0.7

That's the Hebrew version of WinXP.

Reproducing in Hebrew:
1. type 3 letters.
2. Enter
3. type 3 more letters.
4. Enter.
5. Enter.
6. Enter.
7. Click UP Arrow. - Bug: the arrow jumps to the first line.

Reproducing in English:
1. type 3 letters.
2. Enter.
3. type 3 letters.
4. Enter. - Bug: The marker doesn't go to a new line.
5. type 3 letters. - the letters are written in the new line, as if the marker
moved.
6. Enter. - Bug: same as the one before. The marker doesn't go down a line.
7. Enter. The marker jumps two lines down.
8. Click UP Arrow - Bug: The marker jumps to the first line.
9. Click DOWN Arrow - Bug: The marker jumps to the last line.


I could help looking for it, if you'll direct me to the relevant code.
(In reply to comment #5)
> That's the Hebrew version of WinXP.

oops, wrong. it's English WinXP.
Resolved for Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5.

This can be closed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
-> WORKSFORME
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → WORKSFORME
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: