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

[core] Simplify key utils #12120

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Feb 18, 2024

These helpers look like noise. I didn't remove them all to save time, but at least wanted to help make a step toward removing them.

I saw this in #11965.

@oliviertassinari oliviertassinari added the core Infrastructure work going on behind the scenes label Feb 18, 2024
} else if (event.key === 'Delete' || event.key === 'Backspace') {
// Delete on Windows, Backspace on macOS
} else if (event.key === 'Backspace' || event.key === 'Delete') {
Copy link
Member Author

Choose a reason for hiding this comment

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

Backspace is a lot more likely to be used than Delete, see https://en.wikipedia.org/wiki/Delete_key it's hard to reach on Windows keyboard layouts and doesn't exist on Mac.

@mui-bot
Copy link

mui-bot commented Feb 18, 2024

Deploy preview: https://deploy-preview-12120--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 95c3c82

@oliviertassinari oliviertassinari merged commit 8a88e22 into mui:next Feb 20, 2024
17 checks passed
@oliviertassinari oliviertassinari deleted the deprecate-old-utils branch February 20, 2024 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants