Просмотр исходного кода

Make Enter key work when pressing Enter

Daoud Clarke 3 лет назад
Родитель
Сommit
202ef35d7a
1 измененных файлов с 2 добавлено и 0 удалено
  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();
         }
     });