Skip to content

Support AutoFill login and password - #3335

Open
Andrei Salavei (ASalavei) wants to merge 2 commits into
jb-mainfrom
andrei.salavei/autofill
Open

Support AutoFill login and password#3335
Andrei Salavei (ASalavei) wants to merge 2 commits into
jb-mainfrom
andrei.salavei/autofill

Conversation

@ASalavei

@ASalavei Andrei Salavei (ASalavei) commented Aug 25, 2026

Copy link
Copy Markdown

Support "Save Password" when the username and password views are both in the hierarchy at once.

  • Introduce TextInputContainer (a per-scene factory) with a nested TextInputContainer.Holder that creates and controls the state and position of the native text input view for every text field in the Compose scene, including unfocused ones. The scene now creates the input view as soon as the corresponding text field appears on screen, and that view becomes the first responder to handle native keyboard input.
    • Rework ProvideNewContextMenuDefaultProviders in ContextMenu.ios.kt: it now reuses the corresponding native input views added by TextInputContainer.
    • ComposeTextInputConnection and NativeTextInputConnection can now work with both active and inactive text input delegates.
    • Add PlatformTextInputMethodRequest.editorToken to connect an editing request with the corresponding native text input view.
    • Update CMPEditMenuView and CMPTextInputView to conform to the UITextField interface when secure text input is enabled.

Fixes: https://youtrack.jetbrains.com/issue/CMP-5802/Support-Auto-save-and-auto-update-password-prompts-on-iOS.

Release Notes

Features - iOS

  • Support auto-safe and auto-fill login and password for text fields

Support "Save Password" when the username and password views are both in
the hierarchy at once.

- Introduce `TextInputContainer` (a per-scene factory) with a nested
  `TextInputContainer.Holder` that creates and controls the state and
  position of the native text input view for every text field in the
  Compose scene, including unfocused ones. The scene now creates the
  input view as soon as the corresponding text field appears on screen,
  and that view becomes the first responder to handle native keyboard
  input.
- Rework `ProvideNewContextMenuDefaultProviders` in `ContextMenu.ios.kt`:
  it now reuses the corresponding native input views added by
  `TextInputContainer`.
- `ComposeTextInputConnection` and `NativeTextInputConnection` can now
  work with both active and inactive text input delegates.
- Add `PlatformTextInputMethodRequest.editorToken` to connect an editing
  request with the corresponding native text input view.
- Update `CMPEditMenuView` and `CMPTextInputView` to conform to the
  `UITextField` interface when secure text input is enabled.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from skiko and desktop point of view.

@ASalavei
Andrei Salavei (ASalavei) marked this pull request as ready for review August 31, 2026 17:41
@ASalavei Andrei Salavei (ASalavei) changed the title Autofill login and password Support AutoFill login and password Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants