mirror of https://github.com/zulip/zulip.git
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:
parent
969874d633
commit
baad874689
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue