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

Tested by making sure Enter works as expected in the default stream
input at Manage organization > Default stream.
This commit is contained in:
Priyank Patel 2021-05-31 17:09:19 +00:00 committed by Tim Abbott
parent a218143db7
commit 08f5349666
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ export function build_page() {
update_default_streams_table();
$(".create_default_stream").on("keypress", (e) => {
if (e.which === 13) {
if (e.key === "Enter") {
e.preventDefault();
e.stopPropagation();
const default_stream_input = $(".create_default_stream");