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

[data grid][pickers][tree-view] Fix shortcut with localization keyboard #14220

Merged
merged 5 commits into from
Oct 16, 2024

Conversation

rotembarsela
Copy link
Contributor

@rotembarsela rotembarsela commented Aug 15, 2024

Closes #14219

We also fix the date picker and tree view shortcuts.

@mui-bot
Copy link

mui-bot commented Aug 15, 2024

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

Generated by 🚫 dangerJS against a3850fa

@rotembarsela rotembarsela changed the title [DataGrid] fix copy paste cells with localization keyboard [DataGridPremium] fix copy paste cells with localization keyboard Aug 15, 2024
@zannager zannager added the component: data grid This is the name of the generic UI component, not the React module! label Aug 15, 2024
packages/x-data-grid/src/utils/keyboardUtils.ts Outdated Show resolved Hide resolved
@oliviertassinari oliviertassinari changed the title [DataGridPremium] fix copy paste cells with localization keyboard [DataGridPremium] Fix copy paste cells with localization keyboard Aug 16, 2024
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work regression A bug, but worse labels Aug 16, 2024
scripts/README.md Outdated Show resolved Hide resolved
@oliviertassinari oliviertassinari dismissed their stale review August 18, 2024 12:17

Initial concern solved

@oliviertassinari oliviertassinari changed the title [DataGridPremium] Fix copy paste cells with localization keyboard [DataGrid] Fix copy paste cells with localization keyboard Aug 18, 2024
@oliviertassinari
Copy link
Member

oliviertassinari commented Aug 18, 2024

I have added some comments to help in the future, we have had so many iterations of this logic, so to make sure we build up. This looks good 👍, I have unsubscribed to notifications.

For those curious about pushing it even further: w3c/uievents#377.

@oliviertassinari
Copy link
Member

The date picker has the same problem:

@rotembarsela
Copy link
Contributor Author

rotembarsela commented Aug 19, 2024

The date picker has the same problem:

isPasteShortcut func has the same problem when trying to paste after the CTRL+C event,
https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/utils/keyboardUtils.ts

@oliviertassinari oliviertassinari force-pushed the clipboard-copy-paste-cols branch 2 times, most recently from bd9dc9d to 7f065f2 Compare October 8, 2024 23:38
@oliviertassinari oliviertassinari changed the title [DataGrid] Fix copy paste cells with localization keyboard [data grid] Fix copy paste cells with localization keyboard Oct 8, 2024
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

This looks good on my end

@oliviertassinari oliviertassinari force-pushed the clipboard-copy-paste-cols branch 3 times, most recently from 68570fe to 3ed8508 Compare October 9, 2024 10:16
@oliviertassinari oliviertassinari added component: pickers This is the name of the generic UI component, not the React module! component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! labels Oct 9, 2024
@oliviertassinari oliviertassinari changed the title [data grid] Fix copy paste cells with localization keyboard [data grid][pickers][tree-view Fix shortcut with localization keyboard Oct 9, 2024
@oliviertassinari oliviertassinari changed the title [data grid][pickers][tree-view Fix shortcut with localization keyboard [data grid][pickers][tree-view] Fix shortcut with localization keyboard Oct 9, 2024
@oliviertassinari oliviertassinari merged commit 462de3e into mui:master Oct 16, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module! component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Copy & Paste on Cells using localize keyboard
5 participants