mediawiki-extensions-Visual.../modules/ve/ui
Roan Kattouw da4995888b Close inspectors when surface is focused but selection doesn't change
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
2013-12-02 23:52:54 +00:00
..
actions Re-order command registry to match toolbar order 2013-12-02 14:18:03 +00:00
inspectors Make autonumbered external links inspectable 2013-11-30 00:14:41 -08:00
styles Window refactor 2013-11-08 12:33:25 -08:00
tools Make inspector tools active when content is inspectable 2013-11-13 00:54:28 +00:00
widgets Window refactor 2013-11-08 12:33:25 -08:00
ve.ui.Action.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.ui.ActionFactory.js Remove ve.Factory and ve.Registry and use oojs instead 2013-10-22 19:15:18 +00:00
ve.ui.Command.js Detangle triggers from OOUI 2013-10-29 05:50:30 +00:00
ve.ui.CommandRegistry.js Re-order command registry to match toolbar order 2013-12-02 14:18:03 +00:00
ve.ui.Context.js Close inspectors when surface is focused but selection doesn't change 2013-12-02 23:52:54 +00:00
ve.ui.Dialog.js Window refactor 2013-11-08 12:33:25 -08:00
ve.ui.Inspector.js Window refactor 2013-11-08 12:33:25 -08:00
ve.ui.js Window refactor 2013-11-08 12:33:25 -08:00
ve.ui.Surface.js Rich paste 2013-11-26 18:23:12 +00:00
ve.ui.TargetToolbar.js Window refactor 2013-11-08 12:33:25 -08:00
ve.ui.Toolbar.js Remove the toolbar tracker 2013-11-26 13:37:50 +00:00
ve.ui.ToolFactory.js Split oojs-ui from ve.ui 2013-10-28 22:40:08 -07:00
ve.ui.Trigger.js Add the special 'clear' (12) button to ve.ui.Trigger 2013-07-29 16:41:28 -07:00
ve.ui.TriggerRegistry.js Plain text paste with paste special 2013-11-26 18:23:58 +00:00
ve.ui.WindowSet.js Window refactor 2013-11-08 12:33:25 -08:00