Skip to content

Commit

Permalink
describe keyboard controls in help page
Browse files Browse the repository at this point in the history
  • Loading branch information
Giraffaman committed Mar 2, 2024
1 parent e43984a commit 3231f1e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ext/index/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,20 @@ protected function display_page_images(Page $page, array $images): void
public function get_help_html(): HTMLElement
{
return emptyHTML(
H3("Keyboard Controls"),
TABLE(
TR(TH("Shortcut"), TH("Action")),
TR(TD("Ctrl+F"), TD("Focus search")),
TR(TD("A | LeftArrow"), TD("Previous Page/Post")),
TR(TD("D | RightArrow"), TD("Next Page/Post")),
TR(TD("F"), TD("Fullscreen video/image")),
TR(TD("Shift+F"), TD("(Un-)Favorite post")),
TR(TD("space"), TD("play/pause video")),
TR(TD("Q"), TD("go 5 seconds back in video")),
TR(TD("E"), TD("go 5 seconds forwards in video")),
TR(TD("1-9"), TD("jump to 10%, 20%, ...90% in video"))
),
BR(),
H3("Tag Searching"),
P("Searching is largely based on tags, with a number of special keywords available that allow searching based on properties of the posts."),
SHM_COMMAND_EXAMPLE("tagname", 'Returns posts that are tagged with "tagname".'),
Expand Down

0 comments on commit 3231f1e

Please sign in to comment.