mediawiki-extensions-Visual.../modules/ve-mw/ui
Thiemo Kreuz 9f783d962a Regression: Fix selection of first transclusion element
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
2021-09-17 14:46:06 +02:00
..
actions MWLinkAction: update call to window.open 2020-10-08 18:37:47 +00:00
commands doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
contextitems Cleanups and optimizations related to .parseDom() 2021-09-02 18:29:09 +00:00
datatransferhandlers MWWikitextStringTransferHandler: Factor out Parsoid->DOM conversion 2021-01-20 19:49:27 +00:00
dialogs Regression: Fix selection of first transclusion element 2021-09-17 14:46:06 +02:00
elements Update and fix all @param config and @cfg documentation 2021-09-12 12:35:27 +00:00
inspectors Merge "Don't show toolbar in MWLanguageVariantInspector text targets" 2021-08-10 01:17:08 +00:00
pages Merge "Update and fix all @param config and @cfg documentation" 2021-09-16 20:09:15 +00:00
styles Merge "Hide "required" indicator in new sidebar" 2021-09-15 07:44:58 +00:00
tools Merge "ve.ui.MWBackTool: Avoid using global ve.init.target" 2021-08-18 16:50:04 +00:00
widgets Merge "Regression: Fix broken click on top-level template elements" 2021-09-17 11:49:08 +00:00
ve.ui.MWCommandRegistry.js Add command to insert non-breaking space 2021-04-08 00:09:35 +02:00
ve.ui.MWExtensionWindow.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWSequenceRegistry.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWSurface.js eslint: Enable the mediawiki/class-doc rule and make pass 2020-04-17 22:59:11 +01:00
ve.ui.MWWikitextCommandRegistry.js Add command to insert non-breaking space 2021-04-08 00:09:35 +02:00
ve.ui.MWWikitextDataTransferHandlerFactory.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-18 13:16:49 +01:00
ve.ui.MWWikitextSequenceRegistry.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWWikitextSurface.js Override default source mode font in placeholders too 2021-09-09 22:30:38 +02:00
ve.ui.MWWikitextTransferRegistry.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00