Skip to content

Comments

[Cherry-pick] Prevent focus interception by a browser when a backing html input is focused (#2452)#2507

Merged
sekater merged 1 commit intorelease/1.9from
ok/cp_to_1_9-cmp-9041
Oct 22, 2025
Merged

[Cherry-pick] Prevent focus interception by a browser when a backing html input is focused (#2452)#2507
sekater merged 1 commit intorelease/1.9from
ok/cp_to_1_9-cmp-9041

Conversation

@eymar
Copy link
Member

@eymar eymar commented Oct 22, 2025

When handling Tab keydown event, we call preventDefault() to keep the focus in the Compose scene. Compose scene will process the keydown itself and move the focus within itself.

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

Testing

  • Added a test
  • This should be tested by QA

Release Notes

#2452

…focused (#2452)

When handling Tab keydown event, we call `preventDefault()` to keep the
focus in the Compose scene. Compose scene will process the keydown
itself and move the focus within itself.

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

## Testing
- Added a test
- This should be tested by QA

## Release Notes
### Fixes - Web
- Fix focus with Tab behaviour in Text Fields
@eymar eymar requested a review from sekater October 22, 2025 12:08
@sekater sekater merged commit d5d5609 into release/1.9 Oct 22, 2025
4 checks passed
@sekater sekater deleted the ok/cp_to_1_9-cmp-9041 branch October 22, 2025 12:24
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