mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
087fd6c348
In jQuery 1.8, if you focus something using jQuery, the jQuery focus event fires before the jQuery blur event, which is wrong. If you focus something natively, the events do fire in the correct order. See http://jsfiddle.net/WGy9h/4/ . Fortunately, the native events always fire in the correct order, so listen to those instead. Normally, we're not concerned with the order, but in ce.Surface we bind the same focus/blur handlers to a pair of two nodes, and then if the focus moves from one to the other, we'll get confused by the events being emitted in the wrong order. Change-Id: Ia585b42b6deb74ba55a2d55ce1922b1e04d85e81 |
||
---|---|---|
.. | ||
annotations | ||
nodes | ||
styles | ||
ve.ce.Annotation.js | ||
ve.ce.AnnotationFactory.js | ||
ve.ce.BranchNode.js | ||
ve.ce.ContentBranchNode.js | ||
ve.ce.Document.js | ||
ve.ce.DomRange.js | ||
ve.ce.FocusableNode.js | ||
ve.ce.js | ||
ve.ce.LeafNode.js | ||
ve.ce.Node.js | ||
ve.ce.NodeFactory.js | ||
ve.ce.ProtectedNode.js | ||
ve.ce.RelocatableNode.js | ||
ve.ce.ResizableNode.js | ||
ve.ce.Surface.js | ||
ve.ce.SurfaceObserver.js | ||
ve.ce.View.js |