|
|
|
|
@ -177,14 +177,28 @@ function viewfeed(id) {
|
|
|
|
|
|
|
|
|
|
function localHotkeyHandler(keycode) {
|
|
|
|
|
|
|
|
|
|
if (keycode == 78) {
|
|
|
|
|
if (keycode == 78) { // n
|
|
|
|
|
return moveToPost('next');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (keycode == 80) {
|
|
|
|
|
if (keycode == 80) { // p
|
|
|
|
|
return moveToPost('prev');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (keycode == 65) { // a
|
|
|
|
|
return parent.toggleDispRead();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (keycode == 85) { // u
|
|
|
|
|
if (parent.getActiveFeedId()) {
|
|
|
|
|
return parent.viewfeed(parent.getActiveFeedId(), 0, "ForceUpdate");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (keycode == 82) { // r
|
|
|
|
|
return parent.scheduleFeedUpdate(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FIXME
|
|
|
|
|
// if (keycode == 85) {
|
|
|
|
|
// return viewfeed(active_feed_id, active_offset, "ForceUpdate");
|
|
|
|
|
@ -193,3 +207,7 @@ function localHotkeyHandler(keycode) {
|
|
|
|
|
// alert("KC: " + keycode);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function init() {
|
|
|
|
|
document.onkeydown = hotkey_handler;
|
|
|
|
|
}
|
|
|
|
|
|