mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
da4995888b
It's possible for the user to put the cursor back from the inspector in the surface without triggering a selection change, if the selection was collapsed and they clicked in exactly the right spot. In practice, this can happen if the link inspector is open in creation mode and the user clicks to drop the cursor at the same position where it was when the inspector was opened. When this happens, the inspector wouldn't close, because it only closed in response to selection changes. If the user then typed something, weird things would happen. To prevent this state (cursor is in surface but inspector is open) from occurring, close the inspector and hide the context when the document is focused. This fixes the link inspector creation mode issue, and it also causes the link inspector to no longer briefly remain visible after the user has clicked out of it. Bug: 56976 Change-Id: Ib70fc13031873009a175e4b049a07694a87ce25d |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
test | ||
ui | ||
ve.BranchNode.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.EventSequencer.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.Node.js | ||
ve.Range.js | ||
ve.track.js |