Skip to content

Commit

Permalink
Remove keybinding for copying Playroom link to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Jan 3, 2025
1 parent 6095dc4 commit 26bd613
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-rules-bake.md
Original file line number Diff line number Diff line change
@@ -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%2BT8eUQxZBomBgZYQ2JNoShhPw9xZA9kyPNNT3PLMr1zG8C3v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eEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
});
},
},
}}
/>
Expand Down
1 change: 0 additions & 1 deletion src/Playroom/SettingsPanel/SettingsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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, '↑'],
Expand Down
2 changes: 1 addition & 1 deletion src/Playroom/Toolbar/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default ({ themes: allThemes, widths: allWidths, snippets }: Props) => {

<div>
<ToolbarItem
title={`Copy Playroom link (${isMac() ? '⌘⇧C' : 'Ctrl+Shift+C'})`}
title="Copy Playroom link"
success={copying}
onClick={copyHandler}
>
Expand Down

0 comments on commit 26bd613

Please sign in to comment.