Skip to content

feat: add focus handling to macOS view for proper key event forwarding #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewrynhard
Copy link

@andrewrynhard andrewrynhard commented Mar 17, 2025

Updated the add_mouse_button_class_method! macro.
Now, when $foc is true, the code calls makeFirstResponder on the window to ensure the view becomes the first responder.
This change enables the plugin view to properly capture keyboard input on macOS.

Credit to @justinfrankel. See #202.

Updated the `add_mouse_button_class_method!` macro.
Now, when `$foc` is true, the code calls `makeFirstResponder` on the window to ensure the view becomes the first responder.
This change enables the plugin view to properly capture keyboard input on macOS.
@andrewrynhard
Copy link
Author

Fixes #191.

@andrewrynhard
Copy link
Author

While we are at it, I believe I am seeing the same issue in Windows. Is that expected? Where would I look if I wanted to fix that?

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.

1 participant