VisualEditor: Add a keyboard shortcut for "Clear formatting"
Closed, ResolvedPublic

Description

I think "Clear formatting" is important enough to justify a keyboard shortcut. For example, there are cases where the formatting can unintentionally continue longer than you want, such as when you add a link.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=53682
https://bugzilla.wikimedia.org/show_bug.cgi?id=56453

Details

Reference
bz51507

Shortcuts used in other programs are:

Ctrl + Spacebar - Used by Word for "Remove paragraph or character formatting."/"Remove manual character formatting" (http://support.microsoft.com/kb/290938).
Ctrl + \ - Used by Google Docs for "Clear formatting" (https://support.google.com/drive/answer/179738?hl=en)
Ctrl + M - Used by LibreOffice for "Clear direct formatting" (https://help.libreoffice.org/Common/General_Shortcut_Keys_in)

I can see wanting to use Ctrl + Spacebar for a general whitespace inserter menu (nbsp/tab/etc.), so how about we go with Ctrl + \?

Ctrl + M might be a little friendlier. I know from experience people confuse backslash and forward slash. But I don't feel strongly about it.

Change 76666 had a related patch set uploaded by Jforrester:
Add keyboard shortcut for 'clear' button

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

Change 76666 merged by jenkins-bot:
Add keyboard shortcut for 'clear' button

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

Now merged and will go out with the next production push, probably tomorrow.

Elitre added a comment.Sep 2 2013, 1:12 PM

Except there is no \ key on keyboards like the French one, so the shortcut is reported as not working (also, provoking weird behaviour I'll report elsewhere), since they should type CTRL + Alt Gr + 8. Can we do something about this? Thanks.

NicoV added a comment.Sep 4 2013, 10:44 AM

(In reply to comment #7)

Except there is no \ key on keyboards like the French one, so the shortcut is
reported as not working (also, provoking weird behaviour I'll report
elsewhere), since they should type CTRL + Alt Gr + 8. Can we do something
about this? Thanks.

Weird behaviour reported on https://bugzilla.wikimedia.org/show_bug.cgi?id=53682

Re-closing; have made bug 56453 for the suggestion to add a new one for other keyboards.

Add Comment