Skip to content

Fix keyboard input on macos#114

Closed
elcritch wants to merge 4 commits intotreeform:masterfrom
elcritch:macos-keyinput-fixes
Closed

Fix keyboard input on macos#114
elcritch wants to merge 4 commits intotreeform:masterfrom
elcritch:macos-keyinput-fixes

Conversation

@elcritch
Copy link

Turns out that NSApplication doesn't send keyUp events when command or other modifiers are being held down. Seems really weird, but it's an old issue.

This means Windy can't remove the non-modifier keys released before modifiers are released.

Here's some background info:

Initially I tried to follow their approaches of sub-classing NSApplication. However, it seems Window uses a global NSApp. Instead, since Windy already handles all events in pollEvents that was much simpler to implement.

@elcritch
Copy link
Author

@treeform any thoughts on this?

@treeform
Copy link
Owner

Wow sorry I did not see your PR. Will test this now.

@treeform
Copy link
Owner

Thank you for the PR.

This should be fixed: 611883e

Let me know if it does not work for you!

@treeform treeform closed this Sep 12, 2025
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.

2 participants