Merge branch 'master' of https://github.com/chrislemonier/miniflux
This commit is contained in:
commit
a221fdbf8b
@ -3,6 +3,8 @@
|
|||||||
var feeds = [];
|
var feeds = [];
|
||||||
var queue = [];
|
var queue = [];
|
||||||
var queue_length = 5;
|
var queue_length = 5;
|
||||||
|
var keyqueue = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function download_item()
|
function download_item()
|
||||||
@ -538,7 +540,40 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
document.onkeypress = function(e) {
|
document.onkeypress = function(e) {
|
||||||
|
keyqueue.push(e.keyCode);
|
||||||
|
if (keyqueue[0]==103)
|
||||||
|
{
|
||||||
|
switch (keyqueue[1]) {
|
||||||
|
case undefined:
|
||||||
|
break;
|
||||||
|
case 117: //u
|
||||||
|
window.location.href = "?action=unread";
|
||||||
|
keyqueue = [];
|
||||||
|
break;
|
||||||
|
case 98: //b
|
||||||
|
window.location.href = "?action=bookmarks";
|
||||||
|
keyqueue = [];
|
||||||
|
break;
|
||||||
|
case 104: //h
|
||||||
|
window.location.href = "?action=history";
|
||||||
|
keyqueue = [];
|
||||||
|
break;
|
||||||
|
case 115: //s
|
||||||
|
window.location.href = "?action=feeds";
|
||||||
|
keyqueue = [];
|
||||||
|
break;
|
||||||
|
case 112: //p
|
||||||
|
window.location.href = "?action=config";
|
||||||
|
keyqueue = [];
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
keyqueue = [];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
keyqueue = [];
|
||||||
switch (e.keyCode || e.which) {
|
switch (e.keyCode || e.which) {
|
||||||
case 100: // d
|
case 100: // d
|
||||||
download_item();
|
download_item();
|
||||||
@ -570,9 +605,10 @@
|
|||||||
open_next_page();
|
open_next_page();
|
||||||
break;
|
break;
|
||||||
case 63: // ?
|
case 63: // ?
|
||||||
open("?action=show-help", "Help", "width=320,height=400,location=no,scrollbars=no,status=no,toolbar=no");
|
open("?action=show-help", "Help", "width=320,height=450,location=no,scrollbars=no,status=no,toolbar=no");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
<div class="alert alert-normal" id="shortcuts">
|
<div class="alert alert-normal" id="shortcuts">
|
||||||
<h3><?= t('Keyboard shortcuts') ?></h3>
|
<h3><?= t('Keyboard shortcuts') ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><?= t('Go to unread') ?> = <strong>gu</strong></li>
|
||||||
|
<li><?= t('Go to bookmarks') ?> = <strong>gb</strong></li>
|
||||||
|
<li><?= t('Go to history') ?> = <strong>gh</strong></li>
|
||||||
|
<li><?= t('Go to subscriptions') ?> = <strong>gs</strong></li>
|
||||||
|
<li><?= t('Go to preferences') ?> = <strong>gp</strong></li>
|
||||||
<li><?= t('Download content') ?> = <strong>d</strong></li>
|
<li><?= t('Download content') ?> = <strong>d</strong></li>
|
||||||
<li><?= t('Previous item') ?> = <strong>p</strong> <?= t('or') ?> <strong>j</strong></li>
|
<li><?= t('Previous item') ?> = <strong>p</strong> <?= t('or') ?> <strong>j</strong></li>
|
||||||
<li><?= t('Next item') ?> = <strong>n</strong> <?= t('or') ?> <strong>k</strong></li>
|
<li><?= t('Next item') ?> = <strong>n</strong> <?= t('or') ?> <strong>k</strong></li>
|
||||||
|
Loading…
Reference in New Issue
Block a user