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 |
||
---|---|---|
.. | ||
actions | ||
inspectors | ||
styles | ||
tools | ||
widgets | ||
ve.ui.Action.js | ||
ve.ui.ActionFactory.js | ||
ve.ui.Command.js | ||
ve.ui.CommandRegistry.js | ||
ve.ui.Context.js | ||
ve.ui.Dialog.js | ||
ve.ui.Inspector.js | ||
ve.ui.js | ||
ve.ui.Surface.js | ||
ve.ui.TargetToolbar.js | ||
ve.ui.Toolbar.js | ||
ve.ui.ToolFactory.js | ||
ve.ui.Trigger.js | ||
ve.ui.TriggerRegistry.js | ||
ve.ui.WindowSet.js |