Fix missing break statement for arrow shortcuts.

When one presses left key at the first page, `case 37` falls
through to `case 39` and the next page is visited.
This commit is contained in:
Martin Liska
2021-06-09 20:28:13 +02:00
parent 03c4b56c6e
commit 445b9aded7

View File

@@ -301,12 +301,14 @@ var Documentation = {
window.location.href = prevHref;
return false;
}
break;
case 39: // right
var nextHref = $('link[rel="next"]').prop('href');
if (nextHref) {
window.location.href = nextHref;
return false;
}
break;
}
}
});