Page MenuHomePhabricator

Focus is sometimes lost when unchecking a parameter using space
Closed, ResolvedPublic2 Estimated Story Points

Description

When de-selecting a parameter using space focus is sometimes lost. There seem to be at least to cases where that happens. One of them got worse after removing the selection in T312085: Remove selection when selected parameter is unchecked.

Steps to reproduce:

  • Load the template dialog with a template that has several parameters checked
  • Use the keyboard to tab into the parameter selection in the sidebar

1st case:

  • Use space to uncheck a parameter that's not selected
  • Use space again to check it
  • Use space again to uncheck it
  • Focus will be lost and you cannot use the spacebar to trigger the same parameter again

2st case:

  • Use space to uncheck a parameter that's selected
  • Focus will be lost and you cannot use the spacebar to trigger the same parameter again

Event Timeline

Change 812435 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/VisualEditor@master] Differ between setting and highlighting a parameter

https://gerrit.wikimedia.org/r/812435

Change 812435 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Differ between setting and highlighting a parameter

https://gerrit.wikimedia.org/r/812435

lilients_WMDE removed WMDE-Fisch as the assignee of this task.EditedJul 18 2022, 12:58 PM
lilients_WMDE subscribed.

Moving this back because the behaviour happens again in the current master branch. This patch might be the reason: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/814163.

Change 814817 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Fix sidebar loosing focus when unchecking params with space

https://gerrit.wikimedia.org/r/814817

Change 815302 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Minor fixes and optimizations to ParameterSelectWidget

https://gerrit.wikimedia.org/r/815302

Change 815313 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Fix "current page" not being reset when page is removed

https://gerrit.wikimedia.org/r/815313

Change 815302 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Minor fixes and optimizations to ParameterSelectWidget

https://gerrit.wikimedia.org/r/815302

Change 814817 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Fix sidebar losing focus when unchecking params with space

https://gerrit.wikimedia.org/r/814817

Change 815313 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Fix "current page" not being reset when page is removed

https://gerrit.wikimedia.org/r/815313

Change 818995 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Fix forgotten "setPage" property because of merge conflict

https://gerrit.wikimedia.org/r/818995

Change 818995 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Fix forgotten "setPage" property because of merge conflict

https://gerrit.wikimedia.org/r/818995