diff --git a/ghost/admin/app/components/gh-post-settings-menu.hbs b/ghost/admin/app/components/gh-post-settings-menu.hbs index b9a141ec2f..964f317ded 100644 --- a/ghost/admin/app/components/gh-post-settings-menu.hbs +++ b/ghost/admin/app/components/gh-post-settings-menu.hbs @@ -279,7 +279,7 @@
Inline code
- + K
@@ -287,14 +287,14 @@
List
- + L
Ordered list
- + L
@@ -302,21 +302,21 @@
Quote
- + Q
H2
- + H
H3
- + H 2x
diff --git a/ghost/admin/app/components/gh-post-settings-menu/ctrl-or-symbol.hbs b/ghost/admin/app/components/gh-post-settings-menu/ctrl-or-symbol.hbs new file mode 100644 index 0000000000..5ae2184e61 --- /dev/null +++ b/ghost/admin/app/components/gh-post-settings-menu/ctrl-or-symbol.hbs @@ -0,0 +1 @@ +{{this.character}} \ No newline at end of file diff --git a/ghost/admin/app/components/gh-post-settings-menu/ctrl-or-symbol.js b/ghost/admin/app/components/gh-post-settings-menu/ctrl-or-symbol.js new file mode 100644 index 0000000000..71f389fb3b --- /dev/null +++ b/ghost/admin/app/components/gh-post-settings-menu/ctrl-or-symbol.js @@ -0,0 +1,19 @@ +import Component from '@glimmer/component'; +import {htmlSafe} from '@ember/template'; + +const isMac = window.navigator.platform.startsWith('Mac'); + +export default class CtrlOrCmd extends Component { + get tooltip() { + return isMac ? 'Control' : ''; + } + + get character() { + const character = isMac ? '⌃' : 'Ctrl'; + return htmlSafe(character); + } + + get class() { + return isMac ? '' : 'mono'; + } +}