Browse Source

Make Enter key work when pressing Enter

Daoud Clarke 3 năm trước cách đây
mục cha
commit
202ef35d7a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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();
         }
     });