Update RobotUtil.java

经测试,鼠标右键键值 InputEvent.BUTTON3_MASK,而非 InputEvent.BUTTON1_MASK。
This commit is contained in:
Kwok 2021-07-23 11:25:06 +08:00 committed by GitHub
parent 56e107ebda
commit e72d1e6955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}