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

keyTap doesn't work with capital letters. #12

Closed
octalmage opened this issue Feb 4, 2015 · 1 comment
Closed

keyTap doesn't work with capital letters. #12

octalmage opened this issue Feb 4, 2015 · 1 comment
Labels

Comments

@octalmage
Copy link
Owner

This code doesn't work:

var robot = require("robotjs");
robot.keyTap("H");

but this does:

var robot = require("robotjs");
robot.keyTap("h");

This also works:

var robot = require("robotjs");
robot.typeString("H");
@octalmage octalmage added the bug label Feb 4, 2015
@octalmage
Copy link
Owner Author

This is because keyTap is build for holding keys down with modifiers (like shift or ctrl). To do a capital letter you'd press h with shift.

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

No branches or pull requests

1 participant