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.

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

Priyank Patela7a9f3eb92b8
diff --git a/static/js/subs.js b/static/js/subs.js
index 5365ee271aa..41e41cc44db 100644
--- a/static/js/subs.js
+++ b/static/js/subs.js
@@ -639,7 +639,7 @@ export function setup_page(callback) {
// streams, either explicitly via user_can_create_streams, or
// implicitly because page_params.realm_is_zephyr_mirror_realm.
$("#stream_filter input[type='text']").on("keypress", (e) => {
- if (e.which !== 13) {
+ if (e.key !== "Enter") {
return;
}