mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
move help code
This commit is contained in:
parent
2c7702464b
commit
78f7916bb5
2 changed files with 58 additions and 44 deletions
56
script/viewer/Analyse/Help.tsx
Normal file
56
script/viewer/Analyse/Help.tsx
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
import {Show} from "solid-js";
|
||||
|
||||
export interface HelpProps {
|
||||
inShared: boolean;
|
||||
}
|
||||
|
||||
export function Help(props: HelpProps) {
|
||||
return <>
|
||||
<h4>Keyboard Shortcuts</h4>
|
||||
<table className="shortcuts">
|
||||
<tbody>
|
||||
<Show when={!props.inShared} fallback={<tr>
|
||||
<td colSpan={2}>Shortcuts not usable as spectator have been hidden</td>
|
||||
</tr>}>
|
||||
<tr>
|
||||
<td><kbd>.</kbd></td>
|
||||
<td>Next Tick</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>,</kbd></td>
|
||||
<td>Previous Tick</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>⇒</kbd></td>
|
||||
<td>0.5s Forward</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>⇐</kbd></td>
|
||||
<td>0.5s Backwards</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>Ctrl</kbd> + <kbd>G</kbd></td>
|
||||
<td>Goto Tick</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>Ctrl</kbd> + <kbd>F</kbd></td>
|
||||
<td>Find Event</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>Spacebar</kbd></td>
|
||||
<td>Play/Pause</td>
|
||||
</tr>
|
||||
</Show>
|
||||
<tr>
|
||||
<td><kbd>?</kbd></td>
|
||||
<td>This help menu</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>Esc</kbd></td>
|
||||
<td>Close dialogs</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4>Keyboard Shortcuts</h4>
|
||||
</>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue