Closed GoogleCodeExporter closed 9 years ago
Thanks for reporting this. I found it strange, since releaseKey simply releases
the
given key code, regardless of who has the focus. Can you please provide a test
case?
Without one, it would be difficult to reproduce the bug correctly.
You can use the method 'pressAndReleaseKey(KeyPressInfo)' on the meantime:
frame.pressAndReleaseKey(key(VK_S).modifiers(CTRL_MASK))
Thanks in advance,
-Alex
Original comment by Alex.Rui...@gmail.com
on 21 Jan 2009 at 5:12
I found a workaround to this problem: simply call robot.pressKey and
robot.releaseKey.
I looked through the code and I saw that before you release a key first you
check if
the component that calls releaseKey has the focus. I don't know if this is the
right
behavior.
Original comment by nicus...@gmail.com
on 21 Jan 2009 at 9:51
It seems to be a bug in FEST. I'll investigate.
Many thanks!
-Alex
Original comment by Alex.Rui...@gmail.com
on 22 Jan 2009 at 6:05
I look into this bug, and it is really not a bug. The correct way to handle
your case
is with either the workaround you found, or the one I provided.
Thanks,
-Alex
Original comment by Alex.Rui...@gmail.com
on 9 Feb 2009 at 7:29
Original issue reported on code.google.com by
nicus...@gmail.com
on 19 Jan 2009 at 10:06