Added hotkey Shift+A to mark all items as read
I opted for a capital A (Shift + A) since it seems less likely that a user would press that shortcut unintentionally compared to just 'a' without any modifiers. Added help and de_DE translation for new shortcut
This commit is contained in:
parent
3dfc748155
commit
bd98d3d582
@ -89,6 +89,7 @@ return array(
|
||||
'Previous item' => 'Vorheriger Eintrag',
|
||||
'Next item' => 'Nächster Eintrag',
|
||||
'Mark as read or unread' => 'Als gelesen oder ungelesen markieren',
|
||||
'Mark all unread items as read' => 'Alle ungelesenen Einträge als gelesen markieren',
|
||||
'Open original link' => 'Original-Link öffnen',
|
||||
'Open item' => 'Eintrag öffnen',
|
||||
'About' => 'Über',
|
||||
|
@ -11,6 +11,7 @@
|
||||
<li><?php echo t('Previous item') ?> = <strong>p</strong> <?php echo t('or') ?> <strong>j</strong> <?php echo t('or') ?> <strong>◄</strong></li>
|
||||
<li><?php echo t('Next item') ?> = <strong>n</strong> <?php echo t('or') ?> <strong>k</strong> <?php echo t('or') ?> <strong>►</strong></li>
|
||||
<li><?php echo t('Mark as read or unread') ?> = <strong>m</strong></li>
|
||||
<li><?php echo t('Mark all unread items as read') ?> = <strong>A</strong></li>
|
||||
<li><?php echo t('Open original link') ?> = <strong>v</strong></li>
|
||||
<li><?php echo t('Open item') ?> = <strong>o</strong></li>
|
||||
<li><?php echo t('Bookmark item') ?> = <strong>f</strong></li>
|
||||
|
2
assets/js/app.min.js
vendored
2
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@ Miniflux.Event = (function() {
|
||||
|
||||
function isEventIgnored(e)
|
||||
{
|
||||
if (e.keyCode !== 63 && e.which !== 63 && (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey)) {
|
||||
if (e.keyCode !== 63 && e.which !== 63 && (e.ctrlKey || e.altKey || e.metaKey)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -160,6 +160,12 @@ Miniflux.Event = (function() {
|
||||
}();
|
||||
|
||||
switch (e.key || e.which) {
|
||||
case 'A':
|
||||
case 65:
|
||||
if (e.shiftKey) {
|
||||
window.location.href='?action=mark-all-read';
|
||||
}
|
||||
break;
|
||||
case 'd':
|
||||
case 100:
|
||||
if (currentItem) {
|
||||
|
Loading…
Reference in New Issue
Block a user