SikuliX1 icon indicating copy to clipboard operation
SikuliX1 copied to clipboard

macOS/Linux: Env.isLockOn(Key.CAPS_LOCK) not implemented (always returns false)

Open nafis8809 opened this issue 5 years ago • 2 comments

Also: Launchpad: Linux: Key.isLockOn() not detecting state

Hi,

i got both false when i try to check my caps lock was on and off

I have also try to run this code and get the same answer

print(Env.isLockOn(Key.CAPS_LOCK)) keyDown(Key.CAPS_LOCK) print(Env.isLockOn(Key.CAPS_LOCK)) keyUp(Key.CAPS_LOCK)

mac OS catalina 10.15.7 SIkulix 2.0.4

nafis8809 avatar Nov 19 '20 13:11 nafis8809

Thanks for the pointer. Env.isLockOn() currently only works on Windows.

... and using type(Key.CAPS_LOCK) does not do anything on Mac currently.

So I have to dig deeper.

RaiMan avatar Nov 20 '20 15:11 RaiMan

WORKAROUND macOS

keyDown(Key.SHIFT)
type("dies ist ein test")
keyUp()

types: DIES IST EIN TEST

RaiMan avatar Nov 20 '20 16:11 RaiMan