diff --git a/templates/partials/list.html.nunjucks b/templates/partials/list.html.nunjucks index 96aece64cd8083334b5c915840d6d930a3485d2a..fe46d6c1d588dcdc0634117f32efa2d5fc1079bd 100644 --- a/templates/partials/list.html.nunjucks +++ b/templates/partials/list.html.nunjucks @@ -81,6 +81,11 @@ $(window).resize(onresize); $(document).load(onresize); $(document).ready(onresize); + $(document).keypress(function(e) { + if($("#search-overlay").hasClass("shown")) return; + if(e.key == "ArrowRight") window.location = "{{config.baseurl}}/{{metadata.nexturl}}"; + if(e.key == "ArrowLeft") window.location = "{{config.baseurl}}/{{metadata.prevurl}}"; + }); })(jQuery); </script> </div> <!-- #content -->