mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
Update RobotUtil.java
经测试,鼠标右键键值 InputEvent.BUTTON3_MASK,而非 InputEvent.BUTTON1_MASK。
This commit is contained in:
parent
56e107ebda
commit
e72d1e6955
@ -72,8 +72,8 @@ public class RobotUtil {
|
||||
* @since 4.5.7
|
||||
*/
|
||||
public static void rightClick() {
|
||||
ROBOT.mousePress(InputEvent.BUTTON1_MASK);
|
||||
ROBOT.mouseRelease(InputEvent.BUTTON1_MASK);
|
||||
ROBOT.mousePress(InputEvent.BUTTON3_MASK);
|
||||
ROBOT.mouseRelease(InputEvent.BUTTON3_MASK);
|
||||
delay();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user