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

Fix syntax errors not showing up on mouse button and key parameters #7320

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

D8H
Copy link
Collaborator

@D8H D8H commented Jan 17, 2025

No description provided.

@D8H D8H requested a review from 4ian as a code owner January 17, 2025 15:08
Comment on lines -173 to +184
const oldValue = getStringContent(props.value);
if (oldValue !== value) {
props.onChange(valueRegex.test(value) ? `"${value}"` : value);
}
props.onChange(valueRegex.test(value) ? `"${value}"` : value);
Copy link
Collaborator Author

@D8H D8H Jan 17, 2025

Choose a reason for hiding this comment

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

Checking that the value changed was unnecessary and it was forbidding to go from Down to "Down". It's a case that happens when migrating from the deprecated conditions.

@D8H D8H changed the title Fix syntax error not showing up on mouse button and key parameters Fix syntax errors not showing up on mouse button and key parameters Jan 17, 2025
@D8H D8H merged commit f3dea01 into master Jan 17, 2025
5 of 6 checks passed
@D8H D8H deleted the fix-key-parameter-check branch January 17, 2025 19:05
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.

2 participants