mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-29 04:38:55 +03: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 {
|
||||
table {
|
||||
tr > * {
|
||||
border-top: 1px solid var(--outline-color);
|
||||
vertical-align: middle;
|
||||
}
|
||||
th {
|
||||
font-weight: normal;
|
||||
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',
|
||||
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 }) => (
|
||||
<tr key={action}>
|
||||
<th>{action}</th>
|
||||
|
|
Loading…
Reference in a new issue