Skip to content

fix(nsgotest): release physical keys on window blur - #2329

Open
J4ck1e2000 wants to merge 1 commit into
nsgo-dev:mainfrom
J4ck1e2000:fix/issue-2248
Open

J4ck1e2000 wants to merge 1 commit into
nsgo-dev:mainfrom
J4ck1e2000:fix/issue-2248

Conversation

@J4ck1e2000

Copy link
Copy Markdown
Contributor

Summary

Headless BlurWindow now releases a key with its original logical name and physical code, so both held-key trackers clear and the focused view receives the expected OnKeyUp. The regression holds a named key and a physical key on a non-US layout at the same time.

Fixes #2248.

Targets

  • Shared code (nsgotest, headless only)

Screenshots

None; headless input simulation only.

Verification

  • go tool nsgo check ./nsgotest
  • go tool nsgo test -run '^Test(BlurWindowReleasesNamedAndPhysicalKeys|KeysGoDownAndComeUpSeparately|PhysicalKeyStepsFollowThePositionAndLayout|KeysDownHearsKeysNoViewHears|MouseDownUpHeldButtonsAndBlurWindow)$' ./nsgotest -- -count=1 (5 passed)

The full repository test suite was not run locally.

Checklist

  • Conventional Commit title.
  • Changelog fragment added. The testing guide already documents that blur clears all held keys.
  • No third-party code, assets, or dependency changes.

🤖 openai-codex/gpt-6.2-sol

Send the held key's original logical name and physical code when the headless test window loses focus so both held-key trackers receive the release.

Fixes nsgo-dev#2248
@github-actions github-actions Bot added size/S bug Something isn't working documentation Improvements or additions to documentation and removed bug Something isn't working size/S labels Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nsgotest: BlurWindow leaves keys held with KeyCodeDown in KeyCodesDown

1 participant