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] Fix shortcuts when Caps Lock enabled #12121

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Feb 18, 2024

IMHO, if we close #11790, I think it should be after we fully fixed the issue. #11965 is a step, but there is more. Here is a quick PR to go more in depth:

  • toLowerCase is missing in a good chunk of other cases
  • We don't need a double if
  • We can apply the same alternative keys check in all the other places
  • Left a note about a bug in macOS but I suspect it's overkill to fix (not worth the extra bundle size)

@oliviertassinari oliviertassinari added the core Infrastructure work going on behind the scenes label Feb 18, 2024
@@ -304,11 +304,13 @@ function defaultPasteResolver({
});
}

const isPasteShortcut = (event: React.KeyboardEvent) => {
Copy link
Member Author

@oliviertassinari oliviertassinari Feb 18, 2024

Choose a reason for hiding this comment

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

Revert that named function -> anonymous arrow function change. It goes against the style convention in the organization.

@oliviertassinari oliviertassinari force-pushed the keyboard-scale-11965 branch 2 times, most recently from 1f78961 to 732229e Compare February 18, 2024 16:04
@mui-bot
Copy link

mui-bot commented Feb 18, 2024

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

Generated by 🚫 dangerJS against 3ad57b8

@oliviertassinari oliviertassinari merged commit ec055aa into mui:next Feb 20, 2024
18 checks passed
@oliviertassinari oliviertassinari deleted the keyboard-scale-11965 branch February 20, 2024 22:00
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Unable to Paste Row Data in Data Grid with CAPS Lock Key Enabled
3 participants