Last modified: 2013-11-01 05:33:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53507, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51507 - VisualEditor: Add a keyboard shortcut for "Clear formatting"
VisualEditor: Add a keyboard shortcut for "Clear formatting"
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: High enhancement
: VE-deploy-2013-08-15
Assigned To: James Forrester
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-17 04:59 UTC by Matthew Flaschen
Modified: 2013-11-01 05:33 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2013-07-17 04:59:39 UTC
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.
Comment 1 Matthew Flaschen 2013-07-29 04:19:53 UTC
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)
Comment 2 James Forrester 2013-07-29 04:25:49 UTC
I can see wanting to use Ctrl + Spacebar for a general whitespace inserter menu (nbsp/tab/etc.), so how about we go with Ctrl + \?
Comment 3 Matthew Flaschen 2013-07-29 23:09:04 UTC
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.
Comment 4 Gerrit Notification Bot 2013-07-30 00:14:19 UTC
Change 76666 had a related patch set uploaded by Jforrester:
Add keyboard shortcut for 'clear' button

https://gerrit.wikimedia.org/r/76666
Comment 5 Gerrit Notification Bot 2013-07-30 00:51:21 UTC
Change 76666 merged by jenkins-bot:
Add keyboard shortcut for 'clear' button

https://gerrit.wikimedia.org/r/76666
Comment 6 James Forrester 2013-07-30 00:52:20 UTC
Now merged and will go out with the next production push, probably tomorrow.
Comment 7 Elitre 2013-09-02 13:12:47 UTC
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.
Comment 8 NicoV 2013-09-04 10:44:18 UTC
(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
Comment 9 James Forrester 2013-11-01 05:33:55 UTC
Re-closing; have made bug 56453 for the suggestion to add a new one for other keyboards.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links