aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-04-08 13:17:20 +0200
committerGravatar GitHub <noreply@github.com> 2020-04-08 13:17:20 +0200
commit0d235cbadd1fdc3a00d97128746f5138e9faa447 (patch)
treea51c6e11960d68858215195e21198c42189e27f1 /p/scripts
parente15e5d75c943624807ecf7f7316420726e7b306c (diff)
Swap shortcuts for mark all articles as read / mark previous articles as read (#2881)
* Swap shortcuts for mark all articles as read / mark previous articles as read #fix https://github.com/FreshRSS/FreshRSS/issues/2865 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/2843 * <kbd>⇧ Shift</kbd>+<kbd>R</kbd> to mark all articles as read; * <kbd>Alt ⎇</kbd>+<kbd>r</kbd> to mark previous articles as read. * i18n
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 4cd67e014..12d500785 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -793,9 +793,9 @@ function init_shortcuts() {
}
if (k === s.mark_read) {
if (ev.altKey) {
- document.querySelector('.nav_menu .read_all').click();
- } else if (ev.shiftKey) {
mark_previous_read(document.querySelector('.flux.current'));
+ } else if (ev.shiftKey) {
+ document.querySelector('.nav_menu .read_all').click();
} else { // Toggle the read state
mark_read(document.querySelector('.flux.current'), false, false);
}