From 8a9d254068cc4fbe0925f12b375dfe57b3319698 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Tue, 6 Dec 2022 18:07:16 +0800 Subject: [PATCH] fix: allows logseq related shortcut combinations (t t) to work --- tldraw/packages/core/src/lib/TLApp/TLApp.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tldraw/packages/core/src/lib/TLApp/TLApp.ts b/tldraw/packages/core/src/lib/TLApp/TLApp.ts index d8c9b51833..129348b477 100644 --- a/tldraw/packages/core/src/lib/TLApp/TLApp.ts +++ b/tldraw/packages/core/src/lib/TLApp/TLApp.ts @@ -185,9 +185,13 @@ export class TLApp< return { // @ts-expect-error ??? keys: child.constructor['shortcut'] as string | string[], - fn: (_: any, __: any, e: Event) => { + fn: (_: any, __: any, e: KeyboardEvent) => { this.transition(child.id) - e.stopPropagation() + + // hack: allows logseq related shortcut combinations to work + if (e.key !== 't') { + e.stopPropagation() + } }, } })