mirror of https://github.com/zulip/zulip.git
Enable arrowing breaking out of an empty compose on prod.
(imported from commit 85a5826c3f454e268c3b31fc9487e58de1528d53)
This commit is contained in:
parent
ea0e5c4754
commit
fbe55f733c
|
@ -170,8 +170,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) {
|
||||
&& $('#new_message_content').is(':focus')) {
|
||||
compose.cancel();
|
||||
// don't return, as we still want it to be picked up by the code below
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue