From baad874689589ac3cacdaae5ef1bb582ddb9341e Mon Sep 17 00:00:00 2001 From: Priyank Patel Date: Mon, 31 May 2021 16:34:39 +0000 Subject: [PATCH] integrations: Use e.key instead of deprecated e.which. Tested by making sure Enter does the search in the integrations page when the input is not empty. --- static/js/portico/integrations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/portico/integrations.js b/static/js/portico/integrations.js index 5a31131ed7..6daa2e64e2 100644 --- a/static/js/portico/integrations.js +++ b/static/js/portico/integrations.js @@ -303,7 +303,7 @@ function toggle_categories_dropdown() { function integration_events() { $('#integration-search input[type="text"]').on("keypress", (e) => { - if (e.which === 13 && e.target.value !== "") { + if (e.key === "Enter" && e.target.value !== "") { for (const integration_element of $(".integration-lozenges").children()) { const integration = $(integration_element).find(".integration-lozenge");