Page MenuHomePhabricator

WikiEditor: Provide all useful shortcuts from visual editor
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
T62928: WikiEditor: Provide some basic formatting and action keyboard shortcut commands implemented some keyboard shortcuts from visual editor but left out other ones based on the opinion of the volunteer developer who did the work there. While I am grateful to the volunteer developer for adding the shortcuts, I disagree with them that adding Ctrl+1/2/3/4/5 like they are in visual editor is useless or ‘controversial as they conflict with browser shortcuts for navigating between tabs on Windows’. If they were controversial, they would not be present in the visual editor, either. And it is already the case that they would only be working if there is a focus on the edit field.

Personally, I have a user script that was adding the keyboard shortcuts long before the patches became a thing: https://ru.wikipedia.org/wiki/Участник:Stjn/wikiEditorShortcuts.js (it also includes Ctrl+Shift+K for reference and Ctrl+F for search and replace dialog, but those are indeed a bit controversial). And from my own use, I can tell that the heading shortcuts are by far the most useful for me as an editor, given that you need them a lot if you create or copyedit pages and articles. It is especially useful for correcting bad wikitext markup, such as https://en.wikipedia.org/wiki/MOS:BADHEAD violations.

I think not providing these shortcuts while providing all the others is a clear mistake.

Event Timeline

Bugreporter2 subscribed.

Users who are not using VisualEditor are not using it for a reason (i.e. it's terrible). I don't want to accidentally click on something only for the bleedin' Visual Editor to start up.

This isn’t a task about starting visual editor with a keyboard shortcut (and such opportunity already exists, Alt+(Shift)+V). This is a task about having a consistent set of keyboard shortcuts being supported across all editors (such as Ctrl+2 for inserting a 2nd level heading). Your objection fundamentally misunderstands the task.