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

Disallow hotkeys with no keys or modifiers #959

Merged
merged 1 commit into from
May 17, 2024

Conversation

Kuuuube
Copy link
Member

@Kuuuube Kuuuube commented May 17, 2024

In #916 I fixed support for shortcuts that were modifiers only. However, I mistakenly null checked the modifiers array instead of length checking it.

This allows for setting and registering a shortcut that has no key trigger conditions. I'm not exactly sure what is going on with shortcuts like this but they do wacky things and trigger "randomly" when they shouldn't.

@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug area/ui-ux The issue or PR is related to UI/UX/Design labels May 17, 2024
@Kuuuube Kuuuube requested a review from a team as a code owner May 17, 2024 19:19
@jamesmaa jamesmaa added this pull request to the merge queue May 17, 2024
Merged via the queue into yomidevs:master with commit 2e62ddc May 17, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-ux The issue or PR is related to UI/UX/Design kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants