From 6556e0fdad13db4fd30950a5fca9da2a9ba43839 Mon Sep 17 00:00:00 2001 From: LX5321 Date: Fri, 26 May 2023 13:08:17 +0530 Subject: [PATCH] UPDATED: Removed Deprecated API --- public/static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/static/index.js b/public/static/index.js index 1261e15..ad52ab9 100644 --- a/public/static/index.js +++ b/public/static/index.js @@ -4,7 +4,7 @@ function search_web() { } search_box.addEventListener('keyup', (e) => { - if (e.keyCode === 13) { + if (e.key === 'Enter') { search_web() } })