mediawiki-extensions-Visual.../modules/ve-mw/ui/widgets
Thiemo Kreuz cb685d1216 Fix enter sometimes focusing the wrong template part
The behavior of the enter key in the new template dialog sidebar
is somewhat inconsistent. When pressing enter on the name of a
template it sometimes just doesn't work, but focuses something
else.

I realized this is because the message "The … template doesn't
yet exist." does not have a link. There is nothing to focus in
this element. The code just gives up and the selection returns
to whatever was selected before.

It works when there is a link in the template header. But this
is not even that useful.

Let's try to always focus the first parameter instead. The user
can still press Shift + Tab to focus the link to the template
page.

Bug: T289043
Change-Id: Id314ee8ebf47d387df08c7fb432094b6d8f7a3d2
2021-09-14 18:14:05 +02:00
..
ve.ui.MWAceEditorWidget.js Remove @param/@return docs that literally repeat the code 2021-06-14 15:44:51 +02:00
ve.ui.MWCategoryInputWidget.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-18 13:16:49 +01:00
ve.ui.MWCategoryItemWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWCategoryPopupWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWCategoryWidget.js Remove/fix a few small pieces of unused code 2021-05-21 11:43:45 +00:00
ve.ui.MWDismissibleMessageWidget.js Do not pass Message object to …DismissibleMessageWidget 2021-09-03 15:21:36 +00:00
ve.ui.MWEditSummaryWidget.js Document and use mw.Api parameter defaults 2021-07-12 09:13:59 +02:00
ve.ui.MWEducationPopupWidget.js Rewrite EducationPopup so it isn't a mixin 2020-09-24 21:33:50 +01:00
ve.ui.MWExternalLinkAnnotationWidget.js Fix:Internal and External Link annotation widget 2020-02-24 16:40:19 -08:00
ve.ui.MWGalleryGroupWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWGalleryItemWidget.js Preserve inline media tag name in galleries across edits 2020-12-16 17:28:51 -05:00
ve.ui.MWInternalLinkAnnotationWidget.js MWInternalLinkAnnotationWidget: show disambiguation pages last 2021-07-27 18:36:50 -04:00
ve.ui.MWLazyMultilineTextInputWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWMediaInfoFieldWidget.js eslint: Enable the mediawiki/class-doc rule and make pass 2020-04-17 22:59:11 +01:00
ve.ui.MWMoreParametersResultWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWNoParametersResultWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWParameterCheckboxInputWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWParameterResultWidget.js Change style for adding an "Unknown field" in the parameter search 2021-07-08 09:20:25 +02:00
ve.ui.MWParameterSearchWidget.js Merge "Change style for adding an "Unknown field" in the parameter search" 2021-07-08 08:20:59 +00:00
ve.ui.MWPreTextInputWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWTargetWidget.js Merge "Ensure correct classes are added to surfaces" 2021-05-25 19:33:17 +00:00
ve.ui.MWTemplateTitleInputWidget.js Document and use mw.Api parameter defaults 2021-07-12 09:13:59 +02:00
ve.ui.MWTocWidget.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-18 13:16:49 +01:00
ve.ui.MWTransclusionOutlineButtonWidget.js Merge "Use OOUI 'classes' property instead of .addClass()" 2021-09-13 11:46:19 +00:00
ve.ui.MWTransclusionOutlineContainerWidget.js Merge "Fix and test page name splitting code in template dialog" 2021-09-13 12:23:17 +00:00
ve.ui.MWTransclusionOutlineParameterSelectWidget.js Avoid referencing methods via strings, take 2 2021-09-14 12:40:59 +00:00
ve.ui.MWTransclusionOutlineParameterWidget.js Use OOUI 'classes' property instead of .addClass() 2021-09-11 17:41:45 +00:00
ve.ui.MWTransclusionOutlinePartWidget.js Fix enter sometimes focusing the wrong template part 2021-09-14 18:14:05 +02:00
ve.ui.MWTransclusionOutlinePlaceholderWidget.js Remove unused properties from template part widget classes 2021-08-16 14:52:54 +02:00
ve.ui.MWTransclusionOutlineTemplateWidget.js Fix enter sometimes focusing the wrong template part 2021-09-14 18:14:05 +02:00
ve.ui.MWTransclusionOutlineWikitextWidget.js Use the "wikitext" for content in transclusions 2021-08-17 13:06:49 +02:00