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

Keyboard.Press only supports VirtualKeyShort, not char like Keyboard.Type #597

Open
aristotelos opened this issue Nov 23, 2023 · 0 comments

Comments

@aristotelos
Copy link

aristotelos commented Nov 23, 2023

Describe the feature
Keyboard.Press and Keyboard.Release have no overloads. They only support VirtualKeyShort as a parameter type, not char like Keyboard.Type does support.

Workarounds
Workarounds are to dive into the implementation of Keyboard.Type and try to do the same. However, the Keyboard.SendInput method is private, so unicode characters cannot be sent.

Additional context
See

case "keyDown":
var keyToPress = GetKey(action.Value);
Keyboard.Press(keyToPress);

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