summaryrefslogtreecommitdiff
path: root/source/features
diff options
context:
space:
mode:
Diffstat (limited to 'source/features')
-rw-r--r--source/features/pagination-hotkey.tsx (renamed from source/features/navigate-pages-with-arrow-keys.tsx)15
1 files changed, 13 insertions, 2 deletions
diff --git a/source/features/navigate-pages-with-arrow-keys.tsx b/source/features/pagination-hotkey.tsx
index 058b9dcb..77862e7e 100644
--- a/source/features/navigate-pages-with-arrow-keys.tsx
+++ b/source/features/pagination-hotkey.tsx
@@ -1,20 +1,21 @@
import select from 'select-dom';
+import * as pageDetect from 'github-url-detection';
import features from '.';
const nextPageButtonSelectors = [
'a.next_page', // Issue/PR list, Search
+ '.paginate-container.BtnGroup > :last-child', // Notifications
'.paginate-container > .BtnGroup > :last-child', // Commits
'.paginate-container > .pagination > :last-child', // Releases
- '.js-notifications-list-paginator-buttons > :last-child', // Notifications
'.prh-commit > .BtnGroup > :last-child', // PR Commits
];
const previousPageButtonSelectors = [
'a.previous_page', // Issue/PR list, Search
+ '.paginate-container.BtnGroup > :first-child', // Notifications
'.paginate-container > .BtnGroup > :first-child', // Commits
'.paginate-container > .pagination > :first-child', // Releases
- '.js-notifications-list-paginator-buttons > :first-child', // Notifications
'.prh-commit > .BtnGroup > :first-child', // PR Commits
];
@@ -35,5 +36,15 @@ void features.add(__filebasename, {
'→': 'Go to the next page',
'←': 'Go to the previous page',
},
+ // TODO: enable for isDiscussionList after #4695 is fixed
+ include: [
+ pageDetect.isConversationList,
+ pageDetect.isGlobalSearchResults,
+ pageDetect.isLabelList,
+ pageDetect.isNotifications,
+ pageDetect.isRepoCommitList,
+ pageDetect.isPRCommit,
+ pageDetect.isUserProfileRepoTab,
+ ],
init,
});