Ctrl+Z undoes operations in non-focused [contenteditable] elements and teleports caret there
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
People
(Reporter: arni2033, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Updated•8 years ago
|
Comment 7•8 years ago
|
||
Comment 8•8 years ago
|
||
Comment 9•4 years ago
|
||
Resetting assignee which I don't work on in this several months.
Updated•2 years ago
|
Comment 10•2 years ago
|
||
It seems to me that another problem is linked to this one.
On Ctrl+Z on unfocused editables, the undo is done but the onkeydown handler is not triggered.
This is annoying because the container of the editable is not aware of a possible content change.
Updated•2 years ago
|
Comment 11•2 years ago
|
||
(In reply to thierry.excoffier from comment #10)
On Ctrl+Z on unfocused editables, the undo is done but the onkeydown handler is not triggered.
I don't reproduce the symptom in Nightly for Windows.
This is annoying because the container of the editable is not aware of a possible content change.
Why don't you listen beforeinput
whose inputType
is "historyUndo"
?
And,
First problem: Control+Z with the focus on one DIV will do the undo on the other DIV.
No, all browsers share a single undo manager at least between all contenteditable
s in same document. contenteditable
can be added, removed, etc. Therefore, it does not make sense to create undo managers per editing host.
Description
•