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

Improve KeyboardInputGesture.send #3829

Closed
nvaccessAuto opened this issue Jan 31, 2014 · 2 comments
Closed

Improve KeyboardInputGesture.send #3829

nvaccessAuto opened this issue Jan 31, 2014 · 2 comments

Comments

@nvaccessAuto
Copy link

Reported by jteh on 2014-01-31 01:48

  1. Use SendInput so the send operation is atomic.
  2. If there are any unwanted modifiers being held by the user, release them before the desired keys and press them again afterwards.
  3. Use GetAsyncKeyState instead of GetKeyState.
    See easeOfAccess.notify for code that could be borrowed.
@LeonarddeR
Copy link
Collaborator

CC @jcsteh

@jcsteh
Copy link
Contributor

jcsteh commented Jul 18, 2017

Closing as a duplicate of #4294, since that issue had an implementation and a backout. :)

@jcsteh jcsteh marked this as a duplicate of #4294 Jul 18, 2017
@jcsteh jcsteh closed this as completed Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants