mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
9f783d962a
We removed this line of code in a recent patch, but it turns out it's still necessary in at least one situation: * Make sure you have a multi-part template where the first part is a wikitext snippet. * Edit the template. * Click the very first item in the sidebar. Nothing happens. But the text cursor should be in the wikitext field. Another situation: * Put the text cursor in the first wikitext field. * Press shift + tab. Now a button in the bottom toolbar should have the focus. * Click the 1st element in the sidebar. Again, nothing happens. The extra .focus() call is redundant in many situations. But it also doesn't hurt to repeat it. It will just re-focus the element that's already focused. Bug: T289043 Change-Id: Iccbe376b98a1b1e5469cd17e1c95d5d8869442d3 |
||
---|---|---|
.. | ||
actions | ||
commands | ||
contextitems | ||
datatransferhandlers | ||
dialogs | ||
elements | ||
inspectors | ||
pages | ||
styles | ||
tools | ||
widgets | ||
ve.ui.MWCommandRegistry.js | ||
ve.ui.MWExtensionWindow.js | ||
ve.ui.MWSequenceRegistry.js | ||
ve.ui.MWSurface.js | ||
ve.ui.MWWikitextCommandRegistry.js | ||
ve.ui.MWWikitextDataTransferHandlerFactory.js | ||
ve.ui.MWWikitextSequenceRegistry.js | ||
ve.ui.MWWikitextSurface.js | ||
ve.ui.MWWikitextTransferRegistry.js |