Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle keyboard-triggered click events correctly #225

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

MattIPv4
Copy link
Member

Using tab to focus on one of the overlay buttons, using 'Enter' on the keyboard will now correctly toggle the panel.

Fixes #222 -- spamming enter when focused on a panel button will no longer cause the extension to loop, as we're no longer double-calling the setting setter for which panel is open (previously 'Enter' would invoke the body click logic to dismiss the panel, and then immediately also invoke the button click logic to open the panel, causing a state race and loop).

@Copilot Copilot bot review requested due to automatic review settings January 17, 2025 16:16

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@MattIPv4 MattIPv4 requested a review from pjeweb January 17, 2025 16:17
@MattIPv4 MattIPv4 merged commit 702e36d into main Jan 18, 2025
6 checks passed
@MattIPv4 MattIPv4 deleted the MattIPv4/fix-keyboard-click branch January 18, 2025 16:40
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.

Overlay menu goes into an infinite loop when closed using Enter key
2 participants