Skip to content
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

How to clear modifier flags when trying to perform axuielement's action? #3707

Closed
avegetablechicken opened this issue Oct 22, 2024 · 2 comments

Comments

@avegetablechicken
Copy link

I bind hotkeys to select sidebar items of Finder by finding the axuielement for the row object and perform "AXOpen". However it will trigger unintended action when "option" or "command" is pressed (often the case because it is invoked by self-customized hotkeys).
How to avoid such behaviors. I tried posting "eventtap" event of empty flags but it did not work.

@avegetablechicken
Copy link
Author

just adding a delay between posting event and perform AXAction is OK, though it may be affected by too quick consecutive triggering.

@avegetablechicken
Copy link
Author

just adding a delay between posting event and perform AXAction is OK, though it may be affected by too quick consecutive triggering.

A double-check is oftern useful.

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

No branches or pull requests

1 participant