From 08f534966687a412f66881b37e21be9bc3204912 Mon Sep 17 00:00:00 2001 From: Priyank Patel Date: Mon, 31 May 2021 17:09:19 +0000 Subject: [PATCH] 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. --- static/js/settings_streams.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/settings_streams.js b/static/js/settings_streams.js index 173129d1f1..ebbeeb543b 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");