← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #143874]: keyDown(Key.SHIFT) not working on Win?

 

Question #143874 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/143874

Tsung-Hsiang Chang posted a new comment:
Unfortunately, this is a bug of Java robot and we may not be able to fix
it.
(http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=cfc56061b7ccaa1709a312de159d4?bug_id=4908075)

A workaround is to turn off the num lock. 
There will be a new API Env.isLockOn() in RC2 to get the state of locking keys. So one can use Env.isLockOn(Key.NUM_LOCK) to know the state of the num lock, and then use type(Key.NUM_LOCK) to turn it off if needed.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.