mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
5d839a4725
refs https://github.com/TryGhost/Team/issues/1542 With the old publish menu flow the `Ctrl/Cmd+Shift+P` would immediately publish without showing any of the publish options which isn't ideal. For the redesign we'd like to try showing the publish flow modal instead. - added key handler for the shortcut to the publish-flow triggering button - added `ignoreBackdropClick` option to the publish flow modal and support for it in our modal backdrop click handler - the shortcut simulates a click on the button which when the modal is open equates to a backdrop click meaning repeated presses of the Cmd+Shift+P shortcut resulted in glitchy modal open/close behaviour
9 lines
229 B
Handlebars
9 lines
229 B
Handlebars
<button
|
|
type="button"
|
|
class="gh-btn gh-btn-editor green gh-publishmenu-trigger"
|
|
{{on "click" this.openPublishFlow}}
|
|
{{on-key "cmd+shift+p"}}
|
|
data-test-button="publish-flow"
|
|
>
|
|
<span>Publish</span>
|
|
</button> |