Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hotkey: Don't close compose box on topic list input ESC.
Shubham Padia991fec5b23b1
diff --git a/web/src/hotkey.js b/web/src/hotkey.jsindex 6986bdb292e..6134d7efa07 100644--- a/web/src/hotkey.js+++ b/web/src/hotkey.js@@ -334,6 +334,13 @@ export function process_escape_key(e) {return true;}+ // When the input is focused, we blur and clear the input. A second "Esc"+ // will zoom out, handled below.+ if (stream_list.is_zoomed_in() && $("#filter-topic-input").is(":focus")) {+ topic_list.clear_topic_search(e);+ return true;+ }+if (compose_state.composing()) {// Check if the giphy popover was open using compose box.// Hide GIPHY popover if it's open.@@ -353,13 +360,6 @@ export function process_escape_key(e) {return true;}- // When the input is focused, we blur and clear the input. A second "Esc"- // will zoom out, handled below.- if (stream_list.is_zoomed_in() && $("#filter-topic-input").is(":focus")) {- topic_list.clear_topic_search(e);- return true;- }-// We pressed Esc and something was focused, and the composebox// wasn't open. In that case, we should blur the input.$("input:focus,textarea:focus").trigger("blur");