diff options
author | Martin Liska <mliska@suse.cz> | 2021-06-09 20:28:13 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-06-09 20:32:13 +0200 |
commit | 445b9aded7b0de476d2a5d96a30ea49ee446d03d (patch) | |
tree | b5fe7db52f11d80c6d7a81a4c8a077344772a0be /sphinx/themes/basic/static/doctools.js | |
parent | 03c4b56c6e1be86c64d5ec3d0944dff9cd206c41 (diff) | |
download | sphinx-git-445b9aded7b0de476d2a5d96a30ea49ee446d03d.tar.gz |
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.
Diffstat (limited to 'sphinx/themes/basic/static/doctools.js')
-rw-r--r-- | sphinx/themes/basic/static/doctools.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/themes/basic/static/doctools.js b/sphinx/themes/basic/static/doctools.js index 61ac9d266..8cbf1b161 100644 --- a/sphinx/themes/basic/static/doctools.js +++ b/sphinx/themes/basic/static/doctools.js @@ -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; } } }); |