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

Emulating keypress chord doesn't work if user has other keys depressed #45

Open
stevencohn opened this issue May 15, 2024 · 0 comments
Open

Comments

@stevencohn
Copy link

Suppose I have an app or plugin that binds a HotKey sequence, such as Shift+Alt+M to an app feature. That feature then attempts to invoke a Paste operation by calling KeyboardSimulator.ModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.VK_V)

The Ctrl+V is not sent while Shift or Alt is pressed because now it looks like Shift+Alt+Ctrl+V

I've tried un-pressing pressed modifier keys with KeyUp but that doesn't work either.

I can't tell the user "make sure you lift off the keyboard quickly!"

Any advice would be greatly appreciated.

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