Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Make Enter key work when pressing Enter

Daoud Clarke202ef35d7afe
diff --git a/static/index.js b/static/index.js
index 641d2ff..97c4061 100644
--- a/static/index.js
+++ b/static/index.js
@@ -38,6 +38,8 @@ window.onload = (event) => {
selectNextItem();
} else if (e.key == 'ArrowUp') {
selectPreviousItem();
+ } else if (e.key == 'Enter') {
+ clickSelected();
}
});