Enable arrowing breaking out of an empty compose on prod.

(imported from commit 85a5826c3f454e268c3b31fc9487e58de1528d53)
This commit is contained in:
Jessica McKellar 2013-07-18 17:11:12 -04:00
parent ea0e5c4754
commit fbe55f733c
1 changed files with 1 additions and 2 deletions

View File

@ -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 {