Robotjs: CapsLock key support

Created on 19 Dec 2017  路  5Comments  路  Source: octalmage/robotjs


Unable to find capslock key in the syntax details and documentation ?
Is it supported ?
if not then is there any plan to include that ?

Expected Behavior

Capslock key should work :
robot.keyTap('capslock');

Current Behavior

Capslock key not working

Steps to Reproduce (for bugs)

Try : robot.keyTap('capslock');


Context

I'm trying to render capslock key event from my electron app

Your Environment


RobotJS version: 0.4.7
Node.js version: 4.5.0
npm version: 2.15.9
electron version: 1.7.3
Operating System: Win 7

All 5 comments

Is there any update on this ?

@octalmage Is there any plan to support CapsLock key in future ?
I haven't received any comments on my issue above..

Hi @poojas2288 How temporary solve problem, i just add { "capslock", K_CAPSLOCK }, to KeyNames array in file node_modules/robotjs/src/robotjs.cc
After that, you can use capslock like other keyboard triggers: robotjs.keyTap('capslock');
Sorry for my English)

Here commit, which add this feature

This issue has been closed because it has been inactive for > 180 days.
You may reopen this issue if it has been closed in error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tms1337 picture tms1337  路  4Comments

Multiply picture Multiply  路  6Comments

itsashis4u picture itsashis4u  路  10Comments

IChocolateKapa picture IChocolateKapa  路  12Comments

vnsharma-systango picture vnsharma-systango  路  9Comments