diff --git a/static/js/subs.js b/static/js/subs.js index 5365ee271a..41e41cc44d 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; }