mirror of https://github.com/zulip/zulip.git
subs: Use e.key instead of deprecated e.which.
Tested by making sure the "Filter stream" search box filters stream on user input (when Enter is not pressed) in the Streams modal.
This commit is contained in:
parent
90bd3e9123
commit
a7a9f3eb92
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue