mediawiki-extensions-Visual.../modules/ve
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
..
ce Add focus and blur events to ce.Surface 2013-11-27 21:56:34 +00:00
dm Fix JS errors when inserting references 2013-12-02 11:35:00 -08:00
init Plain text paste with paste special 2013-11-26 18:23:58 +00:00
test Merge "Revert model to use simple UTF-16 code units" 2013-11-26 22:53:06 +00:00
ui Close inspectors when surface is focused but selection doesn't change 2013-12-02 23:52:54 +00:00
ve.BranchNode.js
ve.debug.js
ve.Document.js Use OO.EventEmitter instead of ve.EventEmitter 2013-10-22 16:57:33 +00:00
ve.EventSequencer.js Test Surface with IME-like event sequences 2013-11-25 16:49:49 +00:00
ve.js ve.js: Coding style fixup for 6f2090aac6 2013-11-26 23:00:24 +00:00
ve.LeafNode.js
ve.Node.js Rename @emits to @fires so we're forward compatible with JSDuck 5 2013-10-22 19:11:16 +00:00
ve.Range.js doc: Fix existing violations detected by JSDuck 5 2013-11-19 16:10:25 +05:30
ve.track.js ve.track: add topic-based analytic event subscription 2013-10-16 10:03:27 -07:00