summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWolfgang Müller2024-07-22 14:03:12 +0200
committerWolfgang Müller2024-07-22 14:08:40 +0200
commit4e6425585be1e9f2e2b9bc6dc5a5d3ba0f611d27 (patch)
treedd9f387a60a53203686156fdd49256caeb864939
parented4f65804c8aef47367241d57caa5ac39fe0ce8f (diff)
downloadhircine-4e6425585be1e9f2e2b9bc6dc5a5d3ba0f611d27.tar.gz
frontend/reader: Allow switching to first or last page
Diffstat (limited to '')
-rw-r--r--docs/usage/reading.rst4
-rw-r--r--frontend/src/lib/reader/PageView.svelte4
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/usage/reading.rst b/docs/usage/reading.rst
index f48e4c6..5f8b60c 100644
--- a/docs/usage/reading.rst
+++ b/docs/usage/reading.rst
@@ -37,6 +37,10 @@ Additionally, the following keyboard shortcuts are available:
+-------------+ |
| Backspace | |
+-------------+----------------------------------------------------+
+| Home | Go to first page. |
++-------------+----------------------------------------------------+
+| End | Go to last page. |
++-------------+----------------------------------------------------+
Editing when reading
--------------------
diff --git a/frontend/src/lib/reader/PageView.svelte b/frontend/src/lib/reader/PageView.svelte
index 59136b4..08764b7 100644
--- a/frontend/src/lib/reader/PageView.svelte
+++ b/frontend/src/lib/reader/PageView.svelte
@@ -69,7 +69,9 @@
['PageUp', prev],
['PageDown', next],
[' ', next],
- ['Backspace', prev]
+ ['Backspace', prev],
+ ['Home', () => gotoChunk(0)],
+ ['End', () => gotoChunk(chunks.length - 1)]
]}
/>