From 0828a0aa892cda1882ce6109705a14f036a796bd Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 12 Sep 2014 22:03:29 +0200 Subject: [PATCH] Fixed A/D hotkeys with regard to browser's Alt+D --- public_html/js/Presenters/PagedCollectionPresenter.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/public_html/js/Presenters/PagedCollectionPresenter.js b/public_html/js/Presenters/PagedCollectionPresenter.js index 675bd272..c39aac33 100644 --- a/public_html/js/Presenters/PagedCollectionPresenter.js +++ b/public_html/js/Presenters/PagedCollectionPresenter.js @@ -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)); }