mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-11 09:23:36 +01:00
feat: add page up/down hotkeys for quick bookmark input
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user