Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_create: Use e.key instead of deprecated e.keyCode.
Priyank Patel63cf47b63a10
diff --git a/static/js/stream_create.js b/static/js/stream_create.jsindex dca92e666ae..58b9b4f8f86 100644--- a/static/js/stream_create.js+++ b/static/js/stream_create.js@@ -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();}});