mirror of https://github.com/zulip/zulip.git
stream_create: Use e.key instead of deprecated e.keyCode.
Tested by making sure pressing Enter in the stream creation description did not create a new line.
This commit is contained in:
parent
121e21d3b9
commit
63cf47b63a
|
@ -483,7 +483,7 @@ export function set_up_handlers() {
|
|||
// Do not allow the user to enter newline characters while typing out the
|
||||
// stream's description during it's creation.
|
||||
container.on("keydown", "#create_stream_description", (e) => {
|
||||
if ((e.keyCode || e.which) === 13) {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue