Skip to content

fix: Mitigate Android text composition oddities #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

dcalhoun
Copy link
Member

@dcalhoun dcalhoun commented May 15, 2025

What?

Remove default of ending text composition when requesting title and content.

Related: wordpress-mobile/WordPress-Android#21883

Why?

Ref CMM-353. Ref CMM-199.

Fix #103. Fix #130.

Forcibly ending text composition led to odd outcomes--e.g., erroneously
dismissing the inline inserter, resetting editor history stack.

It was originally added to ensure the latest text in the editor is
captured before providing it to the host app for persistence. This
appears necessary for Samsung device keyboards only. For the time being,
text may be lost on these devices if the user does not first blur the
text input before saving or exiting the editor.

How?

Flip the default parameter value.

Testing Instructions

See wordpress-mobile/WordPress-Android#21883.

Accessibility Testing Instructions

N/A, no navigation changes.

Screenshots or screencast

N/A, no visual changes.

Forcibly ending text composition led to odd outcomes--e.g., erroneously
dismissing the inline inserter, resetting editor history stack.

It was originally added to ensure the latest text in the editor is
captured before providing it to the host app for persistence. This
appears necessary for Samsung device keyboards only. For the time being,
text may be lost on these devices if the user does not first blur the
text input before saving or exiting the editor.
@dcalhoun dcalhoun added the [Type] Bug An existing feature does not function as intended label May 15, 2025
@dcalhoun dcalhoun marked this pull request as ready for review May 15, 2025 20:07
@dcalhoun dcalhoun requested review from nbradbury and adalpari and removed request for nbradbury May 15, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
1 participant