Last modified: 2013-09-08 16:28:43 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 T35512, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33512 - VisualEditor: Add keyboard shortcut for heading level
VisualEditor: Add keyboard shortcut for heading level
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Low enhancement
: VE-deploy-2013-09-05
Assigned To: James Forrester
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-04 14:14 UTC by Utsav Sabharwal
Modified: 2013-09-08 16:28 UTC (History)
8 users (show)

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


Attachments

Description Utsav Sabharwal 2012-01-04 14:14:58 UTC
It would be great if could add following shortcuts:

ctrl + { <-- For decreasing font size upto Heading 6
ctrl + } <-- For increasing font size upto Heading 1

Lemme know if I can help you out :)
Comment 1 James Forrester 2012-06-22 20:59:04 UTC
Not sure if we want key bindings for toggling formatting type? Also, not sure if we want to use these particular ones. :-)
Comment 2 James Forrester 2012-06-22 22:06:10 UTC
Mass-moving items into VisualEditor product
Comment 3 James Forrester 2012-06-23 01:38:37 UTC
Mass-move out of "General" to "ContentEditable".
Comment 4 James Forrester 2012-07-02 19:26:02 UTC
Standardise title.
Comment 5 Trevor Parscal 2012-08-22 20:54:21 UTC
This is typically done with ctrl+alt+# in Microsoft Word on Windows, where # is a number between 1 and 3. 

I'm not sure if this is the right way to go, but at least there's some precedence.
Comment 6 James Forrester 2013-06-12 16:58:44 UTC
(In reply to comment #5)
> This is typically done with ctrl+alt+# in Microsoft Word on Windows, where #
> is a number between 1 and 3. 
> 
> I'm not sure if this is the right way to go, but at least there's some
> precedence.

Microsoft Word:
* Ctrl + Shift + N -> Paragraph (⌘ + Shift + N on Mac)
* Ctrl + Alt + 1 -> H1 (⌘ + Alt + 1 on Mac)
* Ctrl + Alt + 2 -> H2 (⌘ + Alt + 2 on Mac)
* Ctrl + Alt + 3 -> H3 (⌘ + Alt + 3 on Mac)
* Ctrl + Alt + 4 -> € (hello, Europe!)

Confluence:
* Ctrl + 0 -> Paragraph (⌘ + 0 on Mac)
* Ctrl + 1 -> H1 (⌘ + 1 on Mac)
* Ctrl + 2 -> H2 (⌘ + 2 on Mac)
* Ctrl + 3 -> H3 (⌘ + 3 on Mac)
* Ctrl + 4 -> H4 (⌘ + 4 on Mac)
* Ctrl + 5 -> H5 (⌘ + 5 on Mac)
* Ctrl + 6 -> H6 (⌘ + 6 on Mac)
* Ctrl + 7 -> Preformatted (⌘ + 7 on Mac)

Should we adopt the Word ones (which are more common but less relevant) or the Confluence ones (which are a perfect fit for our needs, but less commonly-known)?
Comment 7 Matthew Flaschen 2013-07-17 04:57:38 UTC
Confluence seems preferable, mainly because it has one less key.  I'm not sure how many people are familiar with either, and people who know the Word shortcuts will have to disregard Ctrl + Alt + 4 either way.
Comment 8 James Forrester 2013-08-28 18:58:31 UTC
Unfortunately the ⌘ + 1 -> ⌘ + 8 are taken by the browser in Chrome for "switch to tab 1…8", and ⌘ + 9 is for "switch to final tab".

I'm going to go our own way (whee) with:

* ⌘ + Alt + 0 -> Paragraph
* ⌘ + Alt + 1 -> Heading 1 (Page title)
* ⌘ + Alt + 2 -> Heading 2 (Heading)
* ⌘ + Alt + 3 -> Heading 3 (Sub-heading 1)
* ⌘ + Alt + 4 -> Heading 4 (Sub-heading 2)
* ⌘ + Alt + 5 -> Heading 5 (Sub-heading 3)
* ⌘ + Alt + 6 -> Heading 6 (Sub-heading 4)
* ⌘ + Alt + 7 -> Preformatted

And potentially:

* ⌘ + Alt + 8 -> Blockquote (when that is working)

This isn't great, but it's the least-bad option that I can see.
Comment 9 Gerrit Notification Bot 2013-08-29 00:37:47 UTC
Change 81605 had a related patch set uploaded by Jforrester:
[WIP] Add keyboard shortcuts for formatting tools

https://gerrit.wikimedia.org/r/81605
Comment 10 Gerrit Notification Bot 2013-09-04 00:26:50 UTC
Change 81605 merged by jenkins-bot:
Add keyboard shortcuts for formatting tools

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

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


Navigation
Links