Skip to content

Commit

Permalink
[docs-infra] Fix copy shortcut (#43361)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Aug 19, 2024
1 parent bffd105 commit 8024fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-docs/src/CodeCopy/CodeCopy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export function CodeCopyProvider({ children }: CodeCopyProviderProps) {
if (
!(
(event.ctrlKey || event.metaKey) &&
event.key.toLowerCase() === 'c' &&
String.fromCharCode(event.keyCode) === 'C' &&
!event.shiftKey &&
!event.altKey
)
Expand Down

0 comments on commit 8024fa5

Please sign in to comment.