Fixed A/D hotkeys with regard to browser's Alt+D
This commit is contained in:
parent
fa8b7b5376
commit
0828a0aa89
1 changed files with 8 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue