Open
Bug 635616
Opened 13 years ago
Updated 3 years ago
provide an event to detect caret position / selection changes
Categories
(Core :: DOM: Selection, enhancement, P5)
Core
DOM: Selection
Tracking
()
UNCONFIRMED
People
(Reporter: giorgio.liscio, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110219 Firefox/4.0b12pre Build Identifier: hi, the only way i find to do this, now is painful: x.contentWindow.addEventListener("keydown", function(){ thisEditor._selectionChangedEventDispatcher(); }, true); x.contentWindow.addEventListener("keyup", function(){ thisEditor._selectionChangedEventDispatcher(); }, true); x.contentWindow.addEventListener("keypress", function(){ thisEditor._selectionChangedEventDispatcher(); }, true); x.contentWindow.addEventListener("mousedown", function(){ thisEditor._selectionChangedEventDispatcher(); }, true); // this can be enabled only on mousedown and disabled on mouseup x.contentWindow.addEventListener("mousemove", function(){ thisEditor._selectionChangedEventDispatcher(); }, true); x.contentWindow.addEventListener("mouseup", function(){ thisEditor._selectionChangedEventDispatcher(); }, true); x.contentWindow.addEventListener("dragend", function(){ thisEditor._selectionChangedEventDispatcher(); }, true); x.contentWindow.addEventListener("drop", function(){ thisEditor._selectionChangedEventDispatcher(); }, true); we need an event "selectionchanged" thank you Reproducible: Always
Updated•13 years ago
|
Component: Editor → Selection
QA Contact: editor → selection
Comment 1•3 years ago
|
||
Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.
If you have reason to believe this is wrong, please write a comment and ni :jstutte.
Severity: normal → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•