diff --git a/.changeset/small-rules-bake.md b/.changeset/small-rules-bake.md new file mode 100644 index 00000000..39b0bd45 --- /dev/null +++ b/.changeset/small-rules-bake.md @@ -0,0 +1,5 @@ +--- +'playroom': minor +--- + +[Remove keybinding for copying Playroom link to clipboard](https://seek-oss.github.io/braid-design-system/playroom/#?code=N4Igxg9gJgpiBcJgGcYBcAiMBmBDArgDZoDKauaMAFADogBWEARsnQDQAEA2jQHYcdgfAQMIQA5hHgc6ACzRoADsngB6VYsK4AngFpCsgHSSJhGPlQAnSL0q3DkALaqwAUQDSASQCC%2BAJwASoruAG4A4gAyACoAcgASMcjiERgA7gBsAPIAUriOspmeYAEAHABqMZ4wAMIAjsgArAAe%2BFgAzACM7oUAmtoACgDs9AG8sgAsZWGylt7jqQC8qQBM4wAMuhMlG5ap7MIcAL5sB0L8ImKS0nIKymqqAJaOuOIwulYhD2BvYFC8hqgYABrBwQRyGAiqBq4dKDbDYNqDRFQQbLGBQDpgJjpBpQNYdGB%2BQaDEpMQZQcZ%2BKlrEoNPzYVQIsANZZ%2BZbfMBrGBrBowcbLVFQPxMbB%2BDrjdIIvxrKBtdLpcYlDp4-bnY6nA6iCRSGQgeRKFTqJ4vN4fL4-P4AmDA0HgyHpWnSjrpNrjQklQa4dZEuW08XYKANca4bBrXB%2BMAKyVQMCMtrM1nsmCc7m8-mC4Wi8WStrS2XyxXKtaqgTq85nEQcS46m4G%2B7G17vGCWT7fXS-f6AkFOCH4FxBkpgZV%2BEO-GBMEqwXDLdKY9ElErjJiyhprZYL3AwNrLNZxhNsjlcnl8gXLIUisUSqUyuUKpUqkAnNVPgQVi7a65626Gx7PRtmtsOytG0e0hZ1ljPZ1Bg6Jg-CgMl0hhcZ%2BT8eUQxZBomBgZYQ2JNoShhPw9xZA9kyPNNT3PLMr1zG8C3vYtHwOMtX01KsP11fU7iNP9TWbVsLU7a1uzBXtVCVLc1mJdcHTaVNIzwNo5LlCDxhg5ZsGTGd122WMmRIpMU2PdMz0zS8czzW9CwfF8jifABdABKQ4%2BD4AAeAAhCAmg4RRcCgKAHl4cQFjoLRLFeOgAD4DjcshcDAIEOGQPzvlCkAmmQZ5CEIaK2OAV5SHIShaAYZhWBARzDGeRQqCoRgmE4ILYCaRyOAWKKOFoc5K087y2MrIEYG0BZgGamAmhcnrKw4QKUq0Ea6GwMwmjoAaRFwQgHnEXhPEoRxkHS75bGbNbpsregLDQB5sG0aoIBO2wjpgE7LDOmaRAgEJm2WiBFjkB4Ape96Pt8iBkAea6HvSywYC0a7vpBj6mG8khZH8v70pRyxYEsGJzDQSxNoibb5CRmbkDQbQzFGt9QY4JgEqBcRLAgfBeCgaQQlwSxkEMRnEpZtmOfusRLABfBLDwb5bPp3AUuTNAAgoB4axADpVA6Et6YZiAcebZXAosaRYZSh6Ie%2BspNvwag6Z1xxmAeMwuZ5vnsdxw2HgsQxwteWWdfIJgzDQF3ef5vWPf8r2%2BaaX2YH9j7DkchOZr8gKgvEE2YDN3gLZgK3CBtqg7fph2mCdmBpDWFOPsD4Oq5rkQk8bgRUkBtBZCznO84LouS9BsuK%2BkdJq-W2vcCD9BpGzFujmTsejimj6YvOkQ%2BtW1fKycRQHpetB0qecRyY%2BynqZgWmF8rWQYFJkPdQINAIG1nWODbqAO8-B%2Bn6YzeZueJo4g33EPIT8HQ1hrAAKTP3trgJoAB1dunddRgMgdA%2BmzB6CKwAGKQ0-DYcgQU0Gg3dgbKOxsOCmx3rnB4ltra20vn-R2zsODczDiQywntvZx1npWOuU8WGu3DvrDhZC%2BaU1wBzHmUAeFz1nocJeOtkDWFGg1H22oFEfVUCvD6blVBeSaNokQjlnKxVUPFRKK9dH6JXo%2BEAHcYCOGzggLgIAuzZHKiAeybAQBvw7sgZx25q5gNWPZQ4QA.). diff --git a/src/Playroom/CodeEditor/CodeEditor.tsx b/src/Playroom/CodeEditor/CodeEditor.tsx index 07eefd1b..a61d64c1 100644 --- a/src/Playroom/CodeEditor/CodeEditor.tsx +++ b/src/Playroom/CodeEditor/CodeEditor.tsx @@ -298,15 +298,6 @@ export const CodeEditor = ({ ['Shift-Ctrl-R']: false, // override default keybinding ['Cmd-Option-F']: false, // override default keybinding ['Shift-Cmd-Option-F']: false, // override default keybinding - [`Shift-${keymapModifierKey}-C`]: () => { - dispatch({ - type: 'copyToClipboard', - payload: { - url: window.location.href, - trigger: 'toolbarItem', - }, - }); - }, }, }} /> diff --git a/src/Playroom/SettingsPanel/SettingsPanel.tsx b/src/Playroom/SettingsPanel/SettingsPanel.tsx index 7dabdc3c..99c6912b 100644 --- a/src/Playroom/SettingsPanel/SettingsPanel.tsx +++ b/src/Playroom/SettingsPanel/SettingsPanel.tsx @@ -32,7 +32,6 @@ const getKeyBindings = () => { 'Wrap selection in tag': [metaKeySymbol, shiftKeySymbol, ','], 'Format code': [metaKeySymbol, 'S'], 'Insert snippet': [metaKeySymbol, 'K'], - 'Copy Playroom link': [metaKeySymbol, shiftKeySymbol, 'C'], 'Select next occurrence': [metaKeySymbol, 'D'], 'Jump to line number': [metaKeySymbol, 'G'], 'Swap line up': [altKeySymbol, '↑'], diff --git a/src/Playroom/Toolbar/Toolbar.tsx b/src/Playroom/Toolbar/Toolbar.tsx index 389401bc..801d3acd 100644 --- a/src/Playroom/Toolbar/Toolbar.tsx +++ b/src/Playroom/Toolbar/Toolbar.tsx @@ -135,7 +135,7 @@ export default ({ themes: allThemes, widths: allWidths, snippets }: Props) => {