mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
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:
@@ -50,7 +50,7 @@ public class OperatingSystem {
|
|||||||
//use robot to simulate user action so system standby timer resets
|
//use robot to simulate user action so system standby timer resets
|
||||||
java.awt.Robot robot = new java.awt.Robot();
|
java.awt.Robot robot = new java.awt.Robot();
|
||||||
if (isMac())
|
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
|
else
|
||||||
robot.keyPress(KeyEvent.VK_F15); //simulate F15 key press since that won't do anything noticeable
|
robot.keyPress(KeyEvent.VK_F15); //simulate F15 key press since that won't do anything noticeable
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user