0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 Fixed unexpected publishing of post via split-preview shortcut (Publish shortcut is now Ctrl/Cmd+Shift+P) (#924)

closes https://github.com/TryGhost/Ghost/issues/9296

If a user is trying to use the split screen preview shortcut in the admin client (`CTRL+ALT+P` for all platforms), this also calls the publish shortcut when using windows or linux. 

- change the publish shortcut to `${ctrlOrCmd}+shift+p`
This commit is contained in:
Steven Cochrane 2018-01-02 06:04:08 -05:00 committed by Kevin Ansfield
parent 4679302303
commit 30ba178861

View file

@ -6,7 +6,8 @@ import styleBody from 'ghost-admin/mixins/style-body';
import {run} from '@ember/runloop';
let generalShortcuts = {};
generalShortcuts[`${ctrlOrCmd}+alt+p`] = 'publish';
generalShortcuts[`${ctrlOrCmd}+shift+p`] = 'publish';
export default Mixin.create(styleBody, ShortcutsRoute, {
classNames: ['editor'],