-
Notifications
You must be signed in to change notification settings - Fork 91
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
Can't toggle modifier keys #39
Comments
It should be: |
This looks like a dupe of #29, will have to add an example to the docs somewhere. |
@msanders Where's the |
Have you tried |
Nope:
|
Ah I see. It looks like we need to add those as individual key codes, e.g. https://github.com/servo/core-foundation-rs/blob/8793a46/core-graphics/src/event.rs#L53. |
Actually it looks like this is already available, just missing from the docs: autopy.key.tap(autopy.key.Code.META, []) |
Well, that sends the key, doesn't it? What I want is to toggle off the modifiers, in case they were pressed. |
This should work: |
Okay, that works. Should be included in the docs, right? |
👍 yup, should be included now. |
I've been trying to toggle the modifier keys, but I guess I'm doing something wrong:
How should this be done?
The text was updated successfully, but these errors were encountered: