mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-24 01:26:27 +01:00
Add shortcut help for focusing columns in multi-column mode
This commit is contained in:
parent
61f2132abd
commit
3ce8b75e3f
2 changed files with 29 additions and 17 deletions
|
@ -1,5 +1,9 @@
|
||||||
#keyboard-shortcuts-help-container {
|
#keyboard-shortcuts-help-container {
|
||||||
table {
|
table {
|
||||||
|
tr > * {
|
||||||
|
border-top: 1px solid var(--outline-color);
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
th {
|
th {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
text-align: start;
|
text-align: start;
|
||||||
|
|
|
@ -84,23 +84,6 @@ export default function KeyboardShortcutsHelp() {
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
action: 'Search',
|
|
||||||
keys: <kbd>/</kbd>,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
action: 'Compose new post',
|
|
||||||
keys: <kbd>c</kbd>,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
action: 'Send post',
|
|
||||||
keys: (
|
|
||||||
<>
|
|
||||||
<kbd>Ctrl</kbd> + <kbd>Enter</kbd> or <kbd>⌘</kbd> +{' '}
|
|
||||||
<kbd>Enter</kbd>
|
|
||||||
</>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
action: 'Open post details',
|
action: 'Open post details',
|
||||||
keys: (
|
keys: (
|
||||||
|
@ -121,6 +104,31 @@ export default function KeyboardShortcutsHelp() {
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
action: 'Focus column in multi-column mode',
|
||||||
|
keys: (
|
||||||
|
<>
|
||||||
|
<kbd>1</kbd> to <kbd>9</kbd>
|
||||||
|
</>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
action: 'Compose new post',
|
||||||
|
keys: <kbd>c</kbd>,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
action: 'Send post',
|
||||||
|
keys: (
|
||||||
|
<>
|
||||||
|
<kbd>Ctrl</kbd> + <kbd>Enter</kbd> or <kbd>⌘</kbd> +{' '}
|
||||||
|
<kbd>Enter</kbd>
|
||||||
|
</>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
action: 'Search',
|
||||||
|
keys: <kbd>/</kbd>,
|
||||||
|
},
|
||||||
].map(({ action, keys }) => (
|
].map(({ action, keys }) => (
|
||||||
<tr key={action}>
|
<tr key={action}>
|
||||||
<th>{action}</th>
|
<th>{action}</th>
|
||||||
|
|
Loading…
Reference in a new issue