Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

set darwin modifier keys with logical OR#56

Open
tlovrec-form3 wants to merge 1 commit intomicmonay:masterfrom
tlovrec-form3:master
Open

set darwin modifier keys with logical OR#56
tlovrec-form3 wants to merge 1 commit intomicmonay:masterfrom
tlovrec-form3:master

Conversation

@tlovrec-form3
Copy link

When defining an event and setting a single modifier key as the event flag, that key combo is already sent, which prevents use of multiple modifier keys to be used for a keybonding. To avoid this, we combine all the modifiers into a single CGEventFlags variable with logical OR and set them as a single flag allowing the library to send a key-combo with multiple modifiers.

When defining an event and setting a single modifier key as the event
flag, that key combo is already sent. To avoid this, we combine all the
modifiers into a single CGEventFlags variable with logical OR and set
them as a single flag allowing the library to send a key-combo with
multiple modifiers.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant