From 323c6644a757f6945b6efd5ee2fbb9de9fc86686 Mon Sep 17 00:00:00 2001
From: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed, 15 Jul 2015 15:55:10 +0200
Subject: [PATCH] focus subject line when to is already filled

---
 js/mail.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/js/mail.js b/js/mail.js
index c40606a84..b5c77e976 100644
--- a/js/mail.js
+++ b/js/mail.js
@@ -831,7 +831,7 @@ var Mail = {
 							// TODO: replace with horde sync once it's implemented
 							Mail.State.messageView.loadNew();
 						}
-						
+
 					},
 					onError: function(error, textStatus) {
 						if (textStatus !== 'abort') {
@@ -948,9 +948,11 @@ var Mail = {
 			// focus 'to' field automatically on clicking New message button
 			var toInput = composer.el.find('input.to');
 			toInput.focus();
+
 			if (!_.isUndefined(data.currentTarget) && !_.isUndefined($(data.currentTarget).data().email)) {
 				var to = '"' + $(data.currentTarget).data().label + '" <' + $(data.currentTarget).data().email + '>';
 				toInput.val(to);
+				composer.el.find('input.subject').focus();
 			}
 
 			Mail.UI.setMessageActive(null);
-- 
GitLab