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.
This commit is contained in:
Priyank Patel 2021-05-31 16:34:39 +00:00 committed by Tim Abbott
parent 969874d633
commit baad874689
1 changed files with 1 additions and 1 deletions

View File

@ -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");