Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
giphy: Fix escape hotkey not focusing edit message content.
apoorvapendsebe9c8a79bc3a
diff --git a/web/src/hotkey.ts b/web/src/hotkey.tsindex 6bdb76b447f..c7f31b3a1dc 100644--- a/web/src/hotkey.ts+++ b/web/src/hotkey.ts@@ -419,6 +419,14 @@ function process_escape_key(e: JQuery.KeyDownEvent): boolean {return true;}+ if (giphy.is_popped_from_edit_message()) {+ giphy.focus_current_edit_message();+ // Hide after setting focus so that `edit_message_id` is+ // still set in giphy.+ giphy.hide_giphy_popover();+ return true;+ }+if (popovers.any_active()) {popovers.hide_all();return true;@@ -456,14 +464,6 @@ function process_escape_key(e: JQuery.KeyDownEvent): boolean {return true;}- if (giphy.is_popped_from_edit_message()) {- giphy.focus_current_edit_message();- // Hide after setting focus so that `edit_message_id` is- // still set in giphy.- giphy.hide_giphy_popover();- 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() && $("#topic_filter_query").is(":focus")) {