mediawiki-extensions-Visual.../modules/ve-mw/ui
Thiemo Kreuz 19edc6043a Tab to first template parameter in list, not to the selection
This is a partial revert of Iaf089f4. It restores the old behavior:
* In case there is already a highlight in the parameter list, just
  keep that. Usually there is no highlight at this point, but better
  have this check in place to be sure.
* Otherwise always start at the top.

Jumping to the selection is confusing, esp. for keyboard-only users.
The argument goes like this:
* Let's say I'm in the middle of editing values on the right side of
  the dialog.
* I want to navigate to the sidebar. How do I do this with the
  keyboard? I use the tab key.
* Pressing tab also implies I move the selection to the next
  parameter. And the next. Until I reach the end of the parameter
  list. Then the selection stays there.
* When I finally reach the sidebar and tab into the parameter list,
  the last parameter is selected. But this was merely a side-effect
  of me navigating the dialog.

Such a "selection becomes highlighting" behavior was not specified
in T311204.

This patch is requested and approved by PM.

Bug: T312647
Bug: T311204
Change-Id: Ie5b5dfd4fca132050815e6182845ca23adb5f805
2022-07-21 10:44:48 +02:00
..
actions
commands
contextitems Use @type instead of @var for JavaScript variable 2022-07-12 11:18:27 +00:00
datatransferhandlers
dialogs Merge "Simplify interface to remove pages" 2022-07-18 09:55:18 +00:00
elements Document some classes touched in the sidebar rewrite 2022-07-12 12:49:31 +02:00
inspectors Increase default debounce of live extension inspector/dialog to 1000ms 2022-07-14 17:14:37 +01:00
layouts Remove unused getCurrentPageName method from two-pane layout 2022-07-20 17:50:37 +02:00
pages Document some classes touched in the sidebar rewrite 2022-07-12 12:49:31 +02:00
styles Template dialog: Make blue selection color transparent 2022-07-20 12:48:49 +02:00
tools
widgets Tab to first template parameter in list, not to the selection 2022-07-21 10:44:48 +02:00
ve.ui.MWAriaDescribe.js
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