Skip to content

Update NativeInputEventsProcessor to handle deleteContentBackward when a browser performs 'Fast Delete'#2985

Merged
Oleksandr Karpovich (eymar) merged 1 commit into
jb-mainfrom
ok/fast_delete_additional_case
Apr 20, 2026
Merged

Update NativeInputEventsProcessor to handle deleteContentBackward when a browser performs 'Fast Delete'#2985
Oleksandr Karpovich (eymar) merged 1 commit into
jb-mainfrom
ok/fast_delete_additional_case

Conversation

@eymar

@eymar Oleksandr Karpovich (eymar) commented Apr 20, 2026

Copy link
Copy Markdown
Member

Adjusted the logic: The browsers can perform 'Fast Delete' via deleteContentBackward with textRangeSize > 0. (For example, Chrome on Samsung A25)

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

Testing

  • Added a new test
  • This should be tested by QA

Release Notes

Fixes - Web

  • (prerelease fix) Fix handling Fast Delete in mobile browsers

… more robustly

Adjusted the logic: The browsers can perform 'Fast Delete' via deleteContentBackward with textRangeSize > 0. (For example, Chrome on Samsung A25)

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Was worrying whether both input events will trigger somehow together but it's not the case.

Thank you for taking care of this!

@eymar Oleksandr Karpovich (eymar) merged commit 6fd60ff into jb-main Apr 20, 2026
26 of 29 checks passed
@eymar Oleksandr Karpovich (eymar) deleted the ok/fast_delete_additional_case branch April 20, 2026 12:33
Oleksandr Karpovich (eymar) added a commit that referenced this pull request Apr 20, 2026
… when a browser performs 'Fast Delete' (#2985)

Adjusted the logic: The browsers can perform 'Fast Delete' via
deleteContentBackward with textRangeSize > 0. (For example, Chrome on
Samsung A25)

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

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

## Release Notes
### Fixes - Web
- _(prerelease fix)_ Additional fix for handling Fast Delete in mobile
browsers - https://youtrack.jetbrains.com/issue/CMP-9966

(cherry picked from commit 6fd60ff)
Vlad Konstantinov (Kpotko) added a commit that referenced this pull request Apr 21, 2026
… when a browser performs 'Fast Delete' (#2985) (#2987)

Adjusted the logic: The browsers can perform 'Fast Delete' via
deleteContentBackward with textRangeSize > 0. (For example, Chrome on
Samsung A25)

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

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

## Release Notes
### Fixes - Web
- _(prerelease fix)_ Additional fix for handling Fast Delete in mobile
browsers - https://youtrack.jetbrains.com/issue/CMP-9966

(cherry picked from commit 6fd60ff)
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