Skip to content

Navigation Menu

Sign in
Sign up
Hannah Wolfe edited this page Jun 5, 2014 · 25 revisions

The following document outlines the keyboard shortcuts in place in the backbone Ghost admin, and the keyboard shortcuts as we want them to exist in the shiny new Ember admin. At the end is a big list of research I did for various shortcuts.

There are a few important things to consider.

  • Some of these keyboard shortcuts relate to quite advanced pieces of functionality which are only accessible via a keyboard shortcut (e.g zen mode). It may be the case that the functionality doesn't work yet in the Ember admin, but it will need to so we may need to make new issues.
  • The markdown shortcuts have some very specific expected behaviour, in particular around where the cursor starts and where the cursor ends - for example if you press Ctrl+B without any text selected, you should get 4 *'s with the cursor in the middle (i.e. **|**) and I believe if you select text and do it, the selected text should be wrapped in bold and the cursor should appear after. Much of this seems to be broken.
  • Long after we implemented the editor we realised that CodeMirror has some quite odd shortcuts of it's own: https://github.com/marijnh/CodeMirror/blob/master/lib/codemirror.js#L4675 and at least some of them (like Ctrl+D) need to be disabled - this needs auditing / reviewing.

Ember (new)

Editor Markdown shortcuts

Note Where there is a , the shortcuts should be split and the version registered if the current device is mac, and the non- version registered otherwise. if (navigator.userAgent.indexOf('Mac') !== -1) is sufficient to determine which to use.

*Ctrl/⌘+B - bold *Ctrl/⌘+I - italic *Ctrl/⌘+Alt+C - copyHTML

Editor General shortcuts

Save button
  • Ctrl/⌘+S - Save / Update post

Backbone (existing)

Editor general shortcuts

Top level
  • Ctrl+Alt+C - HTML copy & paste
  • Alt+Shift+Z - Zen writing mode
Save button
  • Ctrl+S - Save / Update post
  • Meta+S - Save / Update post
  • Ctrl+Alt+P - Publish post

Editor Markdown shortcuts

All
  • Ctrl+Alt+U - strike
  • Ctrl+Shift+K - code
  • Meta+K - code
  • Ctrl+Alt+1 - h1
  • Ctrl+Alt+2 - h2
  • Ctrl+Alt+3 - h3
  • Ctrl+Alt+4 - h4
  • Ctrl+Alt+5 - h5
  • Ctrl+Alt+6 - h6
  • Ctrl+Shift+L - link
  • Ctrl+Shift+I - image
  • Ctrl+Q - blockquote
  • Ctrl+Shift+1 - currentDate
  • Ctrl+U - uppercase
  • Ctrl+Shift+U - lowercase
  • Ctrl+Alt+Shift+U - titlecase
  • Ctrl+Alt+W - selectword
  • Ctrl+L - list
Mac only:
  • Meta+B - bold
  • Meta+I - italic
  • Meta+Alt+C - copyHTML
  • Meta+Enter - newLine
Non Mac:

*Ctrl+B - bold *Ctrl+I - italic *Ctrl+Alt+C - copyHTML *Ctrl+Enter - newLine

Other shortcuts

  • ESC - Close notification
  • ESC - Close modal

What everyone else does

Bold Text
Ctrl/⌘ + B - this is ubiquitous

Italic Text
Ctrl/⌘ + I - this is ubiquitous

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /