New keyboard shortcuts

This commit is contained in:
Lim Chee Aun 2023-11-06 20:15:13 +08:00
parent 8f34d98f47
commit ea660f9146

View file

@ -117,6 +117,15 @@ export default memo(function KeyboardShortcutsHelp() {
action: 'Compose new post', action: 'Compose new post',
keys: <kbd>c</kbd>, keys: <kbd>c</kbd>,
}, },
{
action: 'Compose new post (new window)',
className: 'insignificant',
keys: (
<>
<kbd>Shift</kbd> + <kbd>c</kbd>
</>
),
},
{ {
action: 'Send post', action: 'Send post',
keys: ( keys: (
@ -134,6 +143,15 @@ export default memo(function KeyboardShortcutsHelp() {
action: 'Reply', action: 'Reply',
keys: <kbd>r</kbd>, keys: <kbd>r</kbd>,
}, },
{
action: 'Reply (new window)',
className: 'insignificant',
keys: (
<>
<kbd>Shift</kbd> + <kbd>r</kbd>
</>
),
},
{ {
action: 'Like (favourite)', action: 'Like (favourite)',
keys: ( keys: (
@ -162,9 +180,9 @@ export default memo(function KeyboardShortcutsHelp() {
</> </>
), ),
}, },
].map(({ action, keys }) => ( ].map(({ action, className, keys }) => (
<tr key={action}> <tr key={action}>
<th>{action}</th> <th class={className}>{action}</th>
<td>{keys}</td> <td>{keys}</td>
</tr> </tr>
))} ))}