Skip to content

propagate keyDown events on macOS if they are not handled in Avalonia#20944

Open
RaoulSeifertEnscape wants to merge 3 commits intoAvaloniaUI:masterfrom
Enscape:bugfix/macos-unhandled-keydown-event-propagation
Open

propagate keyDown events on macOS if they are not handled in Avalonia#20944
RaoulSeifertEnscape wants to merge 3 commits intoAvaloniaUI:masterfrom
Enscape:bugfix/macos-unhandled-keydown-event-propagation

Conversation

@RaoulSeifertEnscape
Copy link
Copy Markdown

What does the pull request do?

This PR adds default keyDown event handling for keyDown events that were not handled in Avalonia.

What is the current behavior?

Currently all keyDown events are consumed and none are forwarded to the nextResponder.

What is the updated/expected behavior with this PR?

With these changes the keyDown events that were not handled in Avalonia will be passed along the responder chain

How was the solution implemented (if it's not obvious)?

Should be obvious, as only simple calls to `[super keyDown:event] where added under the condition that handleKeyDown returns false.

Fixed issues

Fixes #20943

@avaloniaui-bot
Copy link
Copy Markdown

You can test this PR using the following package version. 12.0.999-cibuild0063683-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@cla-avalonia
Copy link
Copy Markdown
Collaborator

cla-avalonia commented Mar 19, 2026

  • All contributors have signed the CLA.

@RaoulSeifertEnscape
Copy link
Copy Markdown
Author

RaoulSeifertEnscape commented Mar 20, 2026

@cla-avalonia agree

@avaloniaui-bot
Copy link
Copy Markdown

You can test this PR using the following package version. 12.0.999-cibuild0063785-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link
Copy Markdown

You can test this PR using the following package version. 12.0.999-cibuild0063902-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unhandled keyDown events are not propagated along the responder chain

4 participants