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.

hotkey: Put focus back into edit text area after Alt + P.

Shubham Padiabbd9b912382b
diff --git a/web/src/hotkey.js b/web/src/hotkey.js
index 82367c89cea..b1b54e922db 100644
--- a/web/src/hotkey.js
+++ b/web/src/hotkey.js
@@ -806,6 +806,7 @@ export function process_hotkey(e, hotkey) {
if ($last_focused_compose_type_input.hasClass("message_edit_content")) {
if ($last_focused_compose_type_input.closest(".preview_mode").length) {
message_edit.clear_preview_area($last_focused_compose_type_input);
+ $last_focused_compose_type_input.trigger("focus");
} else {
message_edit.show_preview_area($last_focused_compose_type_input);
}