221robotics / RobotOpen-HTML5-DriverStation

Chrome DS app for RobotOpen
Apache License 2.0
3 stars 6 forks source link

Blur Enable Button after press to ensure Spacebar Disable functions #18

Open ExploitSage opened 2 years ago

ExploitSage commented 2 years ago

If the last action in the DriverStation was enabling the robot, the button will still have focus and pressing the spacebar to disable will also toggle the Enable Robot button and result in cycling the robot state and NOT disabling the robot.

This change unfocuses the Enable Button after it is pressed to ensure that pressing the spacebar will disable the robot.