Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

key.toggle() doesn't work properly on OS X #2

Open
msanders opened this issue Jan 10, 2010 · 0 comments
Open

key.toggle() doesn't work properly on OS X #2

msanders opened this issue Jan 10, 2010 · 0 comments
Labels

Comments

@msanders
Copy link
Collaborator

E.g., the output of the following should be 'A':

key.toggle(key.K_SHIFT, True)
key.tap('a')
key.toggle(key.K_SHIFT, False)

But on OS X, it is merely 'a'.

This appears to be a bug with CGEventCreateKeyboardEvent(); see: http://lists.apple.com/archives/quartz-dev/2009/Dec/msg00067.html

Is there an alternative (Carbon, maybe?) function we can use in the meantime?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant