Java ignores VK_Enter event generated by robot

前端 未结 3 1423
野性不改
野性不改 2021-01-17 04:11

I\'m writing some integration tests using a robot. I have the robot opening a menu and it should be selecting one of the options form the menu; except the enter key seems t

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-17 04:40

    I guess that your problem is that you are using VK_DOWN only while the event is triggered when key is UP. I mean that you should simulate key typing event, i.e. DOWN and then UP. Try it, I hope this will work.

提交回复
热议问题