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 c11f1cf
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.
9 changes: 0 additions & 9 deletions src/Playroom/CodeEditor/CodeEditor.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 c11f1cf

Please sign in to comment.