Home key does not work in inline contenteditable
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: florine, Assigned: saschanaz)
References
Details
Attachments
(3 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Steps to reproduce:
Open the attachment, test.html
. Select the contenteditable by clicking or pressing the Tab
key. Now press the Home
key.
The bug does not occur if the contenteditable is given the CSS attribute display: inline-block;
.
The bug does not occur if the span that is in front of the contenteditable is removed.
The bug does not occur when pressing Shift + Home
or Ctrl + Home
.
The bug does not occur if the caret is on any line other than the contenteditable's first line; this can be done by selecting the contenteditable, pressing Shift + Enter
, and then pressing Home
.
Actual results:
Nothing happened.
Expected results:
The caret should move to the start of the current line in the contenteditable.
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Weird, Home
key works on my machine on both Firefox 74 and Nightly, but instead End
key (and also just ArrowRight
to the end of the contenteditable) behaves wrong: the caret just disappears.
Reporter | ||
Comment 2•5 years ago
|
||
I uploaded the wrong version of test.html
. The span with id suffix
should be removed in order to match my bug report.
Assignee | ||
Comment 3•5 years ago
|
||
I can see only one span
there with no id
. Could you check again? Removing the : suffix
text still doesn't repro.
Reporter | ||
Comment 4•5 years ago
|
||
My bad, I thought I had given them IDs. I've removed the suffix part and changed the display
to inline
instead of inline-block
. This time I've double checked that it works ^^'
Comment 5•5 years ago
|
||
I can reprodce the issue on Nightly76.0a1 windows10.
Reporter | ||
Comment 6•5 years ago
|
||
(In reply to Alice0775 White from comment #5)
Created attachment 9134634 [details]
bugI can reprodce the issue on Nightly76.0a1 windows10.
Nice! Also note that manually adding a newline inside the contenteditable (using Shift + Enter
) changes things. For example, if you create two lines in the contenteditable in your first case, Home
will only work on the second line, and End
will only work on the first.
Assignee | ||
Comment 7•5 years ago
|
||
Confirmed here too, marking as such.
Updated•5 years ago
|
Comment 8•5 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3
(Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3
(normal.)
Comment 9•4 years ago
|
||
This is affecting Pernosco's filter and condition inputs. From Alice's bug attachment, the case with prefix+suffix applies to Pernosco.
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 10•4 years ago
|
||
Depends on D107119
Comment 11•4 years ago
|
||
Comment 13•4 years ago
|
||
bugherder |
Description
•