Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations: Use e.key instead of deprecated e.which.

Priyank Patelbaad87468958
diff --git a/static/js/portico/integrations.js b/static/js/portico/integrations.js
index 5a31131ed75..6daa2e64e25 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");