Skip to content

Commit 199a916

Browse files
committed
Update the keyboard shortcut for copying text to Ctrl/Cmd+Alt+C
1 parent c4f91f5 commit 199a916

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/ui/src/components/editor/ChatInput/ChatInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export const ChatInput: React.FC<Props> = (props) => {
265265
e.stopPropagation()
266266
props.on_search_click()
267267
}
268-
if (e.key == 'c' && e.shiftKey && (e.ctrlKey || e.metaKey)) {
268+
if (e.key == 'c' && e.altKey && (e.ctrlKey || e.metaKey)) {
269269
if (props.on_copy) {
270270
e.stopPropagation()
271271
e.preventDefault()
@@ -332,8 +332,8 @@ export const ChatInput: React.FC<Props> = (props) => {
332332
? props.submit_disabled_title ?? ''
333333
: `Copy to clipboard (${
334334
navigator.userAgent.toUpperCase().indexOf('MAC') >= 0
335-
? '⌘C'
336-
: 'Ctrl+Shift+C'
335+
? '⌘C'
336+
: 'Ctrl+Alt+C'
337337
})`
338338
}
339339
disabled={!props.is_in_code_completions_mode && !props.value}

0 commit comments

Comments
 (0)