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

Remove keybinding for copying Playroom link to clipboard #386

Merged
merged 1 commit into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading