From 4e6425585be1e9f2e2b9bc6dc5a5d3ba0f611d27 Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Mon, 22 Jul 2024 14:03:12 +0200
Subject: frontend/reader: Allow switching to first or last page

---
 frontend/src/lib/reader/PageView.svelte | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'frontend/src/lib/reader/PageView.svelte')

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)]
 	]}
 />
 
-- 
cgit v1.2.3-2-gb3c3

