Skip to content

Instantly share code, notes, and snippets.

@extratone
Created November 15, 2023 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save extratone/5f6e8f409e530037af9181d7a8d8b30b to your computer and use it in GitHub Desktop.
Save extratone/5f6e8f409e530037af9181d7a8d8b30b to your computer and use it in GitHub Desktop.
Action Shortcut Notes
Create highlight at selected text `h`
Create annotation at selected text `a`
Show existing annotation(s) attached to selected text `s` Moves focus to annotation card in the sidebar
Show/hide all highlights `^⇧h `<br>
Search `/` Moves focus to the search field in sidebar
Post annotation `^Enter` (Windows) or `⌘Return` (Mac) Current focus must be in edit window
Load new annotations `l` Shortcut is only active when the sidebar is in focus, and there are new annotations posted but not yet shown. This will be announced via the screen reader (if used), and indicated by the appearance of a “new annotations available” icon at the top of the sidebar.
Close the Hypothesis Adder `Escape` Works when the Adder is open and the user does not want to select “Annotate” or “Highlight”.
<table>
<thead>
<tr>
<th>Action</th>
<th>Shortcut</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td>Create highlight at selected text</td>
<td>`h`</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Create annotation at selected text</td>
<td>`a`</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Show existing annotation(s) attached to selected text</td>
<td>`s`</td>
<td>Moves focus to annotation card in the sidebar</td>
</tr>
<tr>
<td>Show/hide all highlights</td>
<td>`^⇧h `<br></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Search</td>
<td>`/`</td>
<td>Moves focus to the search field in sidebar</td>
</tr>
<tr>
<td>Post annotation</td>
<td>`^Enter` (Windows) or `⌘Return` (Mac)</td>
<td>Current focus must be in edit window</td>
</tr>
<tr>
<td>Load new annotations</td>
<td>`l`</td>
<td>Shortcut is only active when the sidebar is in focus, and there are new annotations posted but not yet shown. This will be announced via the screen reader (if used), and indicated by the appearance of a “new annotations available” icon at the top of the sidebar.</td>
</tr>
<tr>
<td>Close the Hypothesis Adder</td>
<td>`Escape`</td>
<td>Works when the Adder is open and the user does not want to select “Annotate” or “Highlight”.</td>
</tr>
</tbody>
</table>
Action Shortcut Notes
Create highlight at selected text h
Create annotation at selected text a
Show existing annotation(s) attached to selected text s Moves focus to annotation card in the sidebar
Show/hide all highlights ^⇧h
Search / Moves focus to the search field in sidebar
Post annotation ^Enter (Windows) or ⌘Return (Mac) Current focus must be in edit window
Load new annotations l Shortcut is only active when the sidebar is in focus, and there are new annotations posted but not yet shown. This will be announced via the screen reader (if used), and indicated by the appearance of a “new annotations available” icon at the top of the sidebar.
Close the Hypothesis Adder Escape Works when the Adder is open and the user does not want to select “Annotate” or “Highlight”.
+-------------------------------------------------------+---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Action | Shortcut | Notes |
+-------------------------------------------------------+---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Create highlight at selected text | `h` | |
| Create annotation at selected text | `a` | |
| Show existing annotation(s) attached to selected text | `s` | Moves focus to annotation card in the sidebar |
| Show/hide all highlights | `^⇧h `<br> | |
| Search | `/` | Moves focus to the search field in sidebar |
| Post annotation | `^Enter` (Windows) or `⌘Return` (Mac) | Current focus must be in edit window |
| Load new annotations | `l` | Shortcut is only active when the sidebar is in focus, and there are new annotations posted but not yet shown. This will be announced via the screen reader (if used), and indicated by the appearance of a “new annotations available” icon at the top of the sidebar. |
| Close the Hypothesis Adder | `Escape` | Works when the Adder is open and the user does not want to select “Annotate” or “Highlight”. |
+-------------------------------------------------------+---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@reddylee
Copy link

How come there is no short cuts for hide/show sidebar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment