This repository was archived by the owner on May 12, 2021. It is now read-only.
Commit aa5fd97
committed
Allow fast publish and cancel actions when previewing posts.
Addresses #1285 by adding a key handler to the preview sheet.
It also put the focus on the cancel button. The result is that after
entering preview with `<Ctrl/Cmd> + <Return>` ...
* `<Return>` OR `<Escape>` will cancel the publish and go back to editing
* `<Ctrl/Cmd> + <Return>` once more will publish the message.1 parent d9a9176 commit aa5fd97
1 file changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
78 | 93 | | |
79 | 94 | | |
80 | 95 | | |
| |||
0 commit comments