Page MenuHomePhabricator

Keyboard shortcut help in reply tool shows commands which aren't available
Closed, ResolvedPublic

Description

  1. Open reply tool in visual mode
  2. Press Ctrl+?
  3. Observe "CTRL+1-6 Heading (1-6)" is listed as a shortcut, also "Type {{ Template" and various other things which are disabled in the reply tool

Event Timeline

Change 698881 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] Help dialog: Hide commands which are not in surface.getCommands()

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

Change 698881 had a related patch set uploaded (by Bartosz Dziewoński; author: Esanders):

[VisualEditor/VisualEditor@master] Help dialog: Hide commands which are not in surface.getCommands()

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

Change 698881 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Help dialog: Hide commands which are not in surface.getCommands()

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

It was noted in code review that the patch does not completely fix this issue:

Doesn't seem to fix the issues you described in the task. (…) E.g. "Type {{" is still in the dialog. (…)

The {{ stuff is registered as a wikitextWarning, that will need to be fixed separately.

BeforeAfter
image.png (2×3 px, 601 KB)
image.png (2×3 px, 595 KB)

Change 700247 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/DiscussionTools@master] Unregister sequence help for unavailable commands

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

Change 700427 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (6c7bee041)

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

Change 700247 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Unregister sequence help for unavailable commands

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

matmarex edited projects, added Editing QA; removed Patch-For-Review.

Should be good now with the second patch.

Change 700427 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (6c7bee041)

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