mirror of https://github.com/zulip/zulip.git
Don't let up/down close a compose unless the compose content is focused.
Fixes #1447. (imported from commit 73603050680c526be3764dbaaa8ed747b76ead56)
This commit is contained in:
parent
75ac44f9f3
commit
8f58647ff6
|
@ -147,6 +147,7 @@ function process_hotkey(e) {
|
|||
if ((event_name === 'up_arrow' || event_name === 'down_arrow')
|
||||
&& compose.composing()
|
||||
&& compose.message_content() === ""
|
||||
&& $('#new_message_content').is(':focus')
|
||||
&& page_params.staging) {
|
||||
compose.cancel();
|
||||
// don't return, as we still want it to be picked up by the code below
|
||||
|
|
Loading…
Reference in New Issue