Skip to content

Conversation

@AkiSakurai
Copy link
Contributor

CGEventSourceFlagsState does not update flags immediately after an event is posted, leading to unreliable shortcut behavior. This commit modifies the OTD to track modifier status within OTD itself. Since it no longer fetches modifier flags from the system, it cannot combine with other keyboards to form shortcuts. However, this is likely rare, as it is already not possible on macOS to combine keys on different keyboards to form shortcuts.

fixes #3889

…system

CGEventSourceFlagsState does not update flags immediately after an event is posted,
leading to unreliable shortcut behavior. This commit modifies the OTD to track
modifier status within OTD itself. Since it no longer fetches modifier flags from
the system, it cannot combine with other keyboards to form shortcuts. However, this
is likely rare, as it is already not possible on macOS to combine keys on different
keyboards to form shortcuts.

fixes OpenTabletDriver#3889
@Kuuuube Kuuuube added bug Something isn't working macos Affects the MacOS platform labels Aug 31, 2025
@Kuuuube Kuuuube added this to the v0.6.6 milestone Sep 1, 2025
Copy link
Member

@Kuuuube Kuuuube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. I don't have a way to test for MacOS but this doesn't look like it will cause any trouble.

@Kuuuube Kuuuube merged commit 7ef10b4 into OpenTabletDriver:0.6.x Sep 2, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working macos Affects the MacOS platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants