Skip to content

Fix native text input SendInput layout#213

Merged
enaboapps merged 1 commit into
mainfrom
fix/text-input-sendinput-layout-212
Jun 21, 2026
Merged

Fix native text input SendInput layout#213
enaboapps merged 1 commit into
mainfrom
fix/text-input-sendinput-layout-212

Conversation

@enaboapps

Copy link
Copy Markdown
Contributor

Summary

  • fix the Win32 INPUT union layout used by the native text input helper on x64
  • reserve the full native union size so SendInput accepts Unicode keyboard input records

Closes #212

Proof

Created isolated proof harness at C:\Users\oamcg\source\repos\switchify-text-input-proof.
It opens a real WinForms TextBox, focuses it, sends Unicode text with SendInput(KEYEVENTF_UNICODE) only, then reads the textbox value back.

Result:

sentEvents=60
expectedLength=31
actualLength=31
match=True

No clipboard fallback was used.

Verification

  • dotnet run -c Release in C:\Users\oamcg\source\repos\switchify-text-input-proof
  • npm run native:build
  • npm run native:smoke-text
  • npm test
  • npm run build

@enaboapps enaboapps added this to the Release 0.1.9 milestone Jun 21, 2026
@enaboapps enaboapps merged commit 1436e03 into main Jun 21, 2026
1 check passed
@enaboapps enaboapps deleted the fix/text-input-sendinput-layout-212 branch June 21, 2026 10:17
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.

Fix native text input SendInput layout

2 participants