Skip to content

Conversation

@chrisglein
Copy link
Member

@chrisglein chrisglein commented Apr 7, 2023

This was causing a WM_CHAR to fallthrough to WM_KEYDOWN and produce a duplicate sendMessage

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

Resolves #11452

What

There was a switch case fallthrough happening from WM_CHAR to WM_KEYDOWN. The fix is to add a break statement.

Testing

Patched the source change into a Fabric app that was reproing the issue (AKA one with a TextInput)

Microsoft Reviewers: Open in CodeFlow

This was causing a WM_CHAR to fallthrough to WM_KEYDOWN
and produce a duplicate `sendMessage`
@chrisglein chrisglein requested a review from a team as a code owner April 7, 2023 22:04
@acoates-ms
Copy link
Contributor

Needs a change file. But looks good.

@asklar
Copy link
Member

asklar commented Apr 9, 2023

can you turn on C26819 and make it an error? intended fallthroughs should use [[fallthrough]]

@chrisglein
Copy link
Member Author

can you turn on C26819 and make it an error? intended fallthroughs should use [[fallthrough]]

Opened an issue to figure out why we don't have it enabled and then enable it: #11477

@chrisglein chrisglein added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label Apr 11, 2023
@chrisglein chrisglein merged commit ca37eb7 into microsoft:main Apr 12, 2023
@chrisglein chrisglein deleted the doubleChar branch April 12, 2023 01:02
@jonthysell jonthysell added the New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Fabric Support Facebook Fabric Area: TextInput AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Fabric TextInput generates double key presses (0.0.0-canary.637)

5 participants