Skip to content

Commit

Permalink
Fix missing break statement for arrow shortcuts.
Browse files Browse the repository at this point in the history
When one presses left key at the first page, `case 37` falls
through to `case 39` and the next page is visited.
  • Loading branch information
marxin committed Jun 9, 2021
1 parent 03c4b56 commit 445b9ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sphinx/themes/basic/static/doctools.js
Expand Up @@ -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;
}
}
});
Expand Down

0 comments on commit 445b9ad

Please sign in to comment.