Skip to content

Commit 445b9ad

Browse files
committed
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.
1 parent 03c4b56 commit 445b9ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sphinx/themes/basic/static/doctools.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,14 @@ var Documentation = {
301301
window.location.href = prevHref;
302302
return false;
303303
}
304+
break;
304305
case 39: // right
305306
var nextHref = $('link[rel="next"]').prop('href');
306307
if (nextHref) {
307308
window.location.href = nextHref;
308309
return false;
309310
}
311+
break;
310312
}
311313
}
312314
});

0 commit comments

Comments
 (0)