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: Fix toggle compose preview (Alt+P) hotkey.

Prakhar Pratyushbf325ff6b28f
diff --git a/web/src/hotkey.js b/web/src/hotkey.js
index 17b33d086e6..ecf6b43cafc 100644
--- a/web/src/hotkey.js
+++ b/web/src/hotkey.js
@@ -850,9 +850,9 @@ export function process_hotkey(e, hotkey) {
if (compose_state.composing()) {
if ($("#compose").hasClass("preview_mode")) {
- compose.show_preview_area();
- } else {
compose.clear_preview_area();
+ } else {
+ compose.show_preview_area();
}
return true;
}