Skip to content

Conversation

eymar
Copy link
Member

@eymar eymar commented Jul 22, 2025

By the time WebTextInputService.startInput is called, the real/correct position for backing HTML input might be not known yet. Therefore requesting the focus (and thus showing the keyboard) would make the keyboard overlap the TextField.

We know the real position later, but input.focus() request is ignored unless it's requested in a handler of some user interaction (e.g. touch event). So we check if startInput is within a touch event handler and use its x,y as an initial position for the backing HTML input.

Fixes https://youtrack.jetbrains.com/issue/CMP-8611

ios_keyboard_wa.mov

Testing

This should be tested by QA

Release Notes

Fixes - Web

  • Fix software keyboard behaviour for Compose Text Fields in iOS Safari

@eymar eymar requested a review from Schahen July 22, 2025 15:43
@eymar eymar merged commit 3f222dd into jb-main Jul 23, 2025
13 checks passed
@eymar eymar deleted the ok/fix_software_keyboard_overlap branch July 23, 2025 16:18
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