Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Priyank Patel08f534966687
diff --git a/static/js/settings_streams.js b/static/js/settings_streams.js
index 173129d1f18..ebbeeb543b0 100644
--- a/static/js/settings_streams.js
+++ b/static/js/settings_streams.js
@@ -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");