thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Initial focus in message compose screen

Open cketti opened this issue 2 years ago • 1 comments

When opening the message compose screen, the focus should be on the first empty input field of "To", "Subject", and "Message text" (in that order).

This should do the right thing no matter what action lead to opening the message compose screen (compose, reply, forward, edit draft, mailto: URI)

See also #7618

cketti avatar Feb 13 '24 13:02 cketti

@LorenzHo: For a proper fix I suggest extracting the initFromIntent() code to a separate (Kotlin) file in the com.fsck.k9.ui.compose package. Instead of calling methods on RecipientPresenter, AttachmentPresenter, etc., the code should return a data class containing the properties that have been extracted from the Intent. Then the calling code in MessageCompose will use the result to issue the appropriate calls to the presenters.

That should also allow us to write tests for the code to extract data from Intents.

cketti avatar Feb 14 '24 18:02 cketti