summaryrefslogtreecommitdiff
path: root/sphinx/themes/basic/static/doctools.js
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-06-09 20:28:13 +0200
committerMartin Liska <mliska@suse.cz>2021-06-09 20:32:13 +0200
commit445b9aded7b0de476d2a5d96a30ea49ee446d03d (patch)
treeb5fe7db52f11d80c6d7a81a4c8a077344772a0be /sphinx/themes/basic/static/doctools.js
parent03c4b56c6e1be86c64d5ec3d0944dff9cd206c41 (diff)
downloadsphinx-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.js2
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;
}
}
});