1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 10:15:57 +00:00

check if moveToPost is defined before parsing n/p hotkeys

This commit is contained in:
Andrew Dolgov
2006-08-13 05:12:33 +01:00
parent b31c23117a
commit e59a2f12de

View File

@@ -203,12 +203,16 @@ function hotkey_handler(e) {
}
if (keycode == 78 || keycode == 40) { // n, down
if (typeof h_ctx.moveToPost != undefined) {
return h_ctx.moveToPost('next');
}
}
if (keycode == 80 || keycode == 38) { // p, up
if (typeof h_ctx.moveToPost != undefined) {
return h_ctx.moveToPost('prev');
}
}
if (typeof localHotkeyHandler != 'undefined') {
try {