Browse Source

Make Enter key work when pressing Enter

Daoud Clarke 3 years ago
parent
commit
202ef35d7a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      static/index.js

+ 2 - 0
static/index.js

@@ -38,6 +38,8 @@ window.onload = (event) => {
             selectNextItem();
         } else if (e.key == 'ArrowUp') {
             selectPreviousItem();
+        } else if (e.key == 'Enter') {
+            clickSelected();
         }
     });