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:
Jeff Arnold 2013-07-05 13:52:11 -04:00
parent 75ac44f9f3
commit 8f58647ff6
1 changed files with 1 additions and 0 deletions

View File

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