Skip to content

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

Open
ExploitSage wants to merge 1 commit into221robotics:masterfrom
ExploitSage:bugfix/disable-button-focus
Open

Blur Enable Button after press to ensure Spacebar Disable functions#18
ExploitSage wants to merge 1 commit into221robotics:masterfrom
ExploitSage:bugfix/disable-button-focus

Conversation

@ExploitSage
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant