mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed A/D hotkeys with regard to browser's Alt+D
This commit is contained in:
@ -34,13 +34,19 @@ App.Presenters.PagedCollectionPresenter = function(_, util, promise, api, mouset
|
||||
});
|
||||
}
|
||||
|
||||
function prevPage() {
|
||||
function prevPage(e) {
|
||||
if (e.altKey || e.ctrlKey) {
|
||||
return;
|
||||
}
|
||||
if (pageNumber > 1) {
|
||||
router.navigate(getPageChangeLink(pageNumber - 1));
|
||||
}
|
||||
}
|
||||
|
||||
function nextPage() {
|
||||
function nextPage(e) {
|
||||
if (e.altKey || e.ctrlKey) {
|
||||
return;
|
||||
}
|
||||
if (pageNumber < totalPages) {
|
||||
router.navigate(getPageChangeLink(pageNumber + 1));
|
||||
}
|
||||
|
Reference in New Issue
Block a user