|
|
@ -1134,16 +1134,27 @@ function hotkey_handler(e) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (shift_key && (keycode == 78 || keycode == 40)) { // shift - n, down
|
|
|
|
if (shift_key && keycode == 40) { // shift-down
|
|
|
|
catchupRelativeToArticle(1);
|
|
|
|
catchupRelativeToArticle(1);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (shift_key && (keycode == 80 || keycode == 38)) { // shift - p, up
|
|
|
|
if (shift_key && keycode == 38) { // shift-up
|
|
|
|
catchupRelativeToArticle(0);
|
|
|
|
catchupRelativeToArticle(0);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (shift_key && keycode == 78) { // N
|
|
|
|
|
|
|
|
scrollArticle(50);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (shift_key && keycode == 80) { // P
|
|
|
|
|
|
|
|
scrollArticle(-50);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode == 78 || keycode == 40) { // n, down
|
|
|
|
if (keycode == 78 || keycode == 40) { // n, down
|
|
|
|
if (typeof moveToPost != 'undefined') {
|
|
|
|
if (typeof moveToPost != 'undefined') {
|
|
|
|
moveToPost('next');
|
|
|
|
moveToPost('next');
|
|
|
@ -1332,6 +1343,17 @@ function hotkey_handler(e) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode == 78) { // n
|
|
|
|
|
|
|
|
catchupRelativeToArticle(1);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode == 80) { // p
|
|
|
|
|
|
|
|
catchupRelativeToArticle(0);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Prefix g */
|
|
|
|
/* Prefix g */
|
|
|
|