An open source, non-profit web search engine
Prevent default for up and down keys
Daoud Clarkef754b38f713b
diff --git a/static/index.js b/static/index.jsindex f12d83f..bba7aef 100644--- a/static/index.js+++ b/static/index.js@@ -36,8 +36,10 @@ window.onload = (event) => {console.log("Key press", e);if (e.key == 'ArrowDown') {selectNextItem();+ e.preventDefault();} else if (e.key == 'ArrowUp') {selectPreviousItem();+ e.preventDefault();} else if (e.key == 'Enter') {// const form = document.getElementById('search-form');// form.submit();