Skip to content
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

Fix keyboard closing while scrolling content with Text Fields #1558

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

ASalavei
Copy link
Collaborator

@ASalavei ASalavei commented Sep 12, 2024

Do not call text input service directly to stop input from the LegacyPlatformTextInputServiceAdapter

Fixes https://youtrack.jetbrains.com/issue/CMP-6643/iOS-The-keyboard-closes-while-scrolling-textfield-content-which-is-being-partially-overlapped-by-textfield

Release Notes

Fixes - iOS

  • Fix keyboard closing while scrolling content with Text Fields

@@ -54,7 +54,6 @@ internal actual fun legacyTextInputServiceAdapterAndService():
}

override fun stopInput() {
service.stopInput()
Copy link
Collaborator Author

@ASalavei ASalavei Sep 12, 2024

Choose a reason for hiding this comment

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

@igordmn , do you know the reason why this call was added here?
It looks like the session?.dispose() is doing the same but after active session check.

Copy link
Collaborator

@igordmn igordmn Sep 12, 2024

Choose a reason for hiding this comment

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

Probably because I thought that it should be symmetrical and the session is a separate thing.

After looking into details - your fix is indeed correct, and mine wasn't.

@ASalavei ASalavei merged commit 8619c0a into jb-main Sep 13, 2024
6 checks passed
@ASalavei ASalavei deleted the andrei.salavei/keyboard-closes-while-scrolling branch September 13, 2024 13:37
ASalavei added a commit that referenced this pull request Sep 13, 2024
Do not call text input service directly to stop input from the
`LegacyPlatformTextInputServiceAdapter`

Fixes
https://youtrack.jetbrains.com/issue/CMP-6643/iOS-The-keyboard-closes-while-scrolling-textfield-content-which-is-being-partially-overlapped-by-textfield

## Release Notes
Fix keyboard closing while scrolling content with Text Fields
@igordmn
Copy link
Collaborator

igordmn commented Sep 19, 2024

Added forgotten "### Fixes - iOS" and "- " in the start

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