From 3d7f02ac16b671507bf3da0c4fb8fe4f2dad2a76 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Fri, 12 Aug 2022 16:31:23 +0800 Subject: [PATCH] fix: shift pasting in whiteboard --- tldraw/packages/core/src/lib/TLApp/TLApp.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tldraw/packages/core/src/lib/TLApp/TLApp.ts b/tldraw/packages/core/src/lib/TLApp/TLApp.ts index 13056cf5c8..b5e3a73007 100644 --- a/tldraw/packages/core/src/lib/TLApp/TLApp.ts +++ b/tldraw/packages/core/src/lib/TLApp/TLApp.ts @@ -163,6 +163,15 @@ export class TLApp< this.notify('saveAs', null) }, }, + { + keys: 'mod+shift+v', + fn: (_, __, e) => { + if (!this.editingShape) { + e.preventDefault() + this.paste(undefined, true) + } + }, + }, { keys: ['delete', 'backspace'], fn: () => {