Skip to content

Commit 355937a

Browse files
authored
Merge pull request #9317 from marxin/fix-left-arrow-hotkey
Fix missing break statement for arrow shortcuts.
2 parents c685c48 + 445b9ad commit 355937a

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)