Skip to content

Commit

Permalink
Avoid "type" for keyboard shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Dec 21, 2023
1 parent 27d6f6c commit bd72b38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/MessagePDF.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,14 @@ WrappedMessagePDF = React.memo ({file}) ->
</button>
</TextTooltip>
<OverlayTrigger placement="top" flip overlay={(props) =>
<Tooltip {...props}>Previous page (or type <kbd>-</kbd>)</Tooltip>
<Tooltip {...props}>Previous page (keyboard: <kbd>-</kbd>)</Tooltip>
}>
<button className="btn btn-default prevPage #{if pageNum <= 1 then 'disabled'}" aria-label="Previous page" onClick={onChangePage -1}>
<span className="fas fa-backward" aria-hidden="true"/>
</button>
</OverlayTrigger>
<OverlayTrigger placement="top" flip overlay={(props) =>
<Tooltip {...props}>Next page (or type <kbd>+</kbd>)</Tooltip>
<Tooltip {...props}>Next page (keyboard: <kbd>+</kbd>)</Tooltip>
}>
<button className="btn btn-default nextPage #{if pageNum >= numPages then 'disabled'}" aria-label="Next page" onClick={onChangePage +1}>
<span className="fas fa-forward" aria-hidden="true"/>
Expand Down
4 changes: 2 additions & 2 deletions client/message.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Message = React.memo ({message}) ->
<div className="hidden-print text-right toc-toggle">
<OverlayTrigger placement="top" flip overlay={(props) ->
<Tooltip {...props}>
Click (or type <kbd>t</kbd>) to toggle the right sidebar
Click (or press <kbd>t</kbd>) to toggle the right sidebar
listing all posts. Click on post to scroll to that post;
drag posts to re-order.
</Tooltip>
Expand Down Expand Up @@ -2796,7 +2796,7 @@ export WrappedSubmessage = React.memo ({message, read}) ->
<p>Message is <b>protected</b>, so edits are restricted to coauthors and superusers.</p>
}
{if can.becomeSuper and not can.edit
<p>Become Superuser (or type <kbd>s</kbd>) to edit this message.</p>
<p>Click Become Superuser (or press <kbd>s</kbd>) to edit this message.</p>
}
</Tooltip>
}>
Expand Down

0 comments on commit bd72b38

Please sign in to comment.