Re:RobotJS – Node.js Desktop Automation
by hugs on Thursday July 30, 2015 @10:50AM
(#9975336)
I'm sure it's possible, but one way to avoid it -- turn the constant into a method:
(Not great for key combos, though...)
[ Parent
| on HN ]
I'd then go with
robot.keys.enter()
(since enter is a function, not a constant) and make it chainable by returning `robot.keys`. robot.keys.ctrl().enter()