Fixed A/D hotkeys with regard to browser's Alt+D

This commit is contained in:
Marcin Kurczewski 2014-09-12 22:03:29 +02:00
parent fa8b7b5376
commit 0828a0aa89

View file

@ -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) { if (pageNumber > 1) {
router.navigate(getPageChangeLink(pageNumber - 1)); router.navigate(getPageChangeLink(pageNumber - 1));
} }
} }
function nextPage() { function nextPage(e) {
if (e.altKey || e.ctrlKey) {
return;
}
if (pageNumber < totalPages) { if (pageNumber < totalPages) {
router.navigate(getPageChangeLink(pageNumber + 1)); router.navigate(getPageChangeLink(pageNumber + 1));
} }