Virtual whiteboard for sketching hand-drawn like diagrams
fix: Revert `906faaf0` #3206 (#3269)
David Luzarc1379c3c10f5
diff --git a/src/actions/actionClipboard.tsx b/src/actions/actionClipboard.tsxindex 050fe3a264..fdbe41dc7a 100644--- a/src/actions/actionClipboard.tsx+++ b/src/actions/actionClipboard.tsx@@ -17,7 +17,7 @@ export const actionCopy = register({};},contextItemLabel: "labels.copy",- // Don't assign keyTest since its handled via copy event+ keyTest: (event) => event[KEYS.CTRL_OR_CMD] && event.code === CODES.C,});export const actionCut = register({diff --git a/src/components/App.tsx b/src/components/App.tsxindex 6f66202449..7455e416a9 100644--- a/src/components/App.tsx+++ b/src/components/App.tsx@@ -1047,13 +1047,6 @@ class App extends React.Component<ExcalidrawProps, AppState> {});private onCopy = withBatchedUpdates((event: ClipboardEvent) => {- const activeSelection = document.getSelection();- if (- activeSelection?.anchorNode &&- !this.excalidrawContainerRef.current!.contains(activeSelection.anchorNode)- ) {- return;- }if (isWritableElement(event.target)) {return;}diff --git a/src/keys.ts b/src/keys.tsindex d8dff56540..31baff5507 100644--- a/src/keys.ts+++ b/src/keys.ts@@ -40,7 +40,6 @@ export const KEYS = {TAB: "Tab",A: "a",- C: "c",D: "d",E: "e",L: "l",