compose: Fix enter returning user to preview mode.

I'm not sure whether the bug this fixes was a regression resulting
from d6d3683da0, or an old bug, but
focusing the compose box is not sufficient to end preview mode; we
should be calling the function that's explicitly for that.
This commit is contained in:
Tim Abbott
2022-08-16 14:34:11 -07:00
parent 2ed650f596
commit 745b96ea46

View File

@@ -273,8 +273,8 @@ export function enter_with_preview_open() {
// If enter_sends is enabled, we attempt to send the message // If enter_sends is enabled, we attempt to send the message
finish(); finish();
} else { } else {
// Otherwise, we return to the compose box and focus it // Otherwise, we return to the normal compose state.
$("#compose-textarea").trigger("focus"); clear_preview_area();
} }
} }