From dcde4feef30b3dda83607efb56fb908a2a085877 Mon Sep 17 00:00:00 2001 From: Jinbo Pan Date: Thu, 15 Aug 2024 17:17:03 -0700 Subject: [PATCH] Do not prevent default for Enter Do not prevent default for "Enter" if search is not visible. Old logic would prevent comment system adding new line using "Enter" --- assets/js/search.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/assets/js/search.js b/assets/js/search.js index c3e7adbc..bfa1a322 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -73,8 +73,6 @@ document.addEventListener("keydown", function (event) { } else { document.activeElement.click(); } - }else{ - event.preventDefault(); } }