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