Merge pull request #1721 from KwokRoot/patch-2

Update RobotUtil.java
This commit is contained in:
Golden Looly 2021-07-23 22:01:54 +08:00 committed by GitHub
commit 6fb20e69e9
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();
}