Switches KeepAlive Key on mac to F4 (from F1) to workaround help

F1 key is sometimes mapped to invoke help menus (e.g. Discord)
This commit is contained in:
leriomaggio
2021-07-08 07:55:59 +01:00
parent 4be1891a3f
commit 4875b512de

View File

@@ -50,7 +50,7 @@ public class OperatingSystem {
//use robot to simulate user action so system standby timer resets
java.awt.Robot robot = new java.awt.Robot();
if (isMac())
robot.keyPress(KeyEvent.VK_F1); // F15 increases Display Brightness by default. Switch to F1
robot.keyPress(KeyEvent.VK_F4); // F15 increases Display Brightness by default. Switch to F4 (F1 is help in some programs, e.g. Discord)
else
robot.keyPress(KeyEvent.VK_F15); //simulate F15 key press since that won't do anything noticeable