Closed Bug 299529 Opened 19 years ago Closed 19 years ago

BiDi: Backspace is ignored if pressed after Delete in a line that ends with a character in the opposite direction

Categories

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

defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: bugzillamozilla, Assigned: uriber)

References

Details

Attachments

(1 file)

To reproduce:

1. Type an English character at the beginning of an RTL textarea, or a Hebrew
character at the beginning of an LTR textarea (the attached testcase includes
two such textareas).
2. Press Delete.
3. Press Backspace

Actual Results:  
Backspace is ignored.

Expected Results:
Backspace should delete the character typed in step #1

Tested with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050702 Firefox/1.0+

First reported in Bug 207186, comment #9

Prog.
Summary: Backspace is ignored if pressed after Delete in a line that ends with a character in the opposite direction → BiDi: Backspace is ignored if pressed after Delete in a line that ends with a character in the opposite direction
The regression from the behavior described in bug 207186 comment 9 to the
behavior described here is due to the patch on bug 254278. I'll post a detailed
note on that bug.

The original behavior is arguably correct. See bug 80550 comment #5.
Depends on: 254278
Following the check-in of the second patch on bug 254278, the caret no longer
behaves as described in the summary and in comment #0.

Currently, pressing "delete" moves the caret to the other side of the text (left
in RTL textarea, right in LTR), and the pressing "backspace" movess it back to
the original location.

I think this behaviour is correct (certainly its second part, involving the
backspace, is), so I'm marking this bug as fixed.

Prog (or anybody else) - if you disagree with me, please open a separate bug,
describing the current behaviour, and we'll have someone (Simon?) decide whether
it's a bug or not.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
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: