From e70d091433b7c92edd3a6240e9bdcdeeb7b967db Mon Sep 17 00:00:00 2001 From: cketti Date: Mon, 14 Feb 2011 08:28:03 +0100 Subject: [PATCH] Explicitly set focus to "To:" input field when composing or forwarding a message. --- src/com/fsck/k9/activity/MessageCompose.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index 3352808d7..bd8baed66 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -525,8 +525,12 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc ACTION_EDIT_DRAFT.equals(action)) { //change focus to message body. mMessageContentView.requestFocus(); + } else { + // Explicitly set focus to "To:" input field (see issue 2998) + mToView.requestFocus(); } + mEncryptLayout = findViewById(R.id.layout_encrypt); mCryptoSignatureCheckbox = (CheckBox)findViewById(R.id.cb_crypto_signature); mCryptoSignatureUserId = (TextView)findViewById(R.id.userId);