Skip to content

Forward Keyboard listener context - #58231

Open
OskarEichler wants to merge 1 commit into
react:mainfrom
OskarEichler:codex/fix-keyboard-listener-context
Open

Forward Keyboard listener context#58231
OskarEichler wants to merge 1 commit into
react:mainfrom
OskarEichler:codex/fix-keyboard-listener-context

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

Summary:

Keyboard.addListener publicly accepts an optional listener context but drops it before delegating to NativeEventEmitter. Forward that argument and cover the callback receiver through the underlying device event emitter.

Fixes #58230.

Changelog:

[GENERAL] [FIXED] - Honor the optional context passed to Keyboard.addListener.

Test Plan:

  • Exact upstream regression failed because the listener receiver was not the supplied context.
  • Fixed focused Jest suite: 8/8 passed.
  • Fresh Flow check: 0 errors.
  • Targeted no-ignore ESLint, Prettier, and git diff --check passed.

No UI change; screenshots are not applicable.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 30, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keyboard.addListener ignores its context argument

1 participant