feat: add page up/down hotkeys for quick bookmark input

This commit is contained in:
Lukas
2026-03-22 13:05:48 +01:00
parent 013cc175a6
commit 252ebf962d
2 changed files with 7 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ The bookmark editor gives you full control over PDF navigation bookmarks (also c
- Import bookmarks from CSV (title, page, level) or JSON files
- Export bookmarks to CSV or JSON for external editing
- Bookmark styling: color (red, blue, green, yellow, purple) and font style (bold, italic, bold italic)
- Quick navigation: scroll through pages with page up/down keys
## Options

View File

@@ -1057,6 +1057,12 @@ document.addEventListener('keydown', (e: KeyboardEvent) => {
e.preventDefault();
redo();
}
} else if (e.key === 'PageUp') {
e.preventDefault();
prevPageBtn?.click();
} else if (e.key === 'PageDown') {
e.preventDefault();
nextPageBtn?.click();
}
});