summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/Layout.tsx
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-31 00:55:13 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-31 00:55:13 -0700
commitc3925c04d981d2abc1e21cf72d6e77d165420a73 (patch)
tree5606cd34884ef2114e6c875ce57aed87d1ec2457 /extension/react-app/src/components/Layout.tsx
parentdd440b4223496f1f67efa9fb48ec9c0919182707 (diff)
downloadsncontinue-c3925c04d981d2abc1e21cf72d6e77d165420a73.tar.gz
sncontinue-c3925c04d981d2abc1e21cf72d6e77d165420a73.tar.bz2
sncontinue-c3925c04d981d2abc1e21cf72d6e77d165420a73.zip
fix: :bug: ctrl+c for windows overriding copy
Diffstat (limited to 'extension/react-app/src/components/Layout.tsx')
-rw-r--r--extension/react-app/src/components/Layout.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/react-app/src/components/Layout.tsx b/extension/react-app/src/components/Layout.tsx
index 500dc921..c328a206 100644
--- a/extension/react-app/src/components/Layout.tsx
+++ b/extension/react-app/src/components/Layout.tsx
@@ -101,7 +101,7 @@ const Layout = () => {
if (event.metaKey && event.altKey && event.code === "KeyN") {
client?.loadSession(undefined);
}
- if (event.metaKey && event.code === "KeyC") {
+ if ((event.metaKey || event.ctrlKey) && event.code === "KeyC") {
const selection = window.getSelection()?.toString();
if (selection) {
// Copy to clipboard