Explorar el Código

fix: all tldraw shortcut can still be handled by logseq

Peng Xiao hace 3 años
padre
commit
e5cfde099e
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. 2 4
      tldraw/packages/core/src/lib/TLApp/TLApp.ts

+ 2 - 4
tldraw/packages/core/src/lib/TLApp/TLApp.ts

@@ -194,11 +194,9 @@ export class TLApp<
           keys: child.constructor['shortcut'] as string | string[],
           fn: (_: any, __: any, e: KeyboardEvent) => {
             this.transition(child.id)
-
             // hack: allows logseq related shortcut combinations to work
-            if (e.key !== 't') {
-              e.stopPropagation()
-            }
+            // fixme?: unsure if it will cause unexpected issues
+            // e.stopPropagation()
           },
         }
       })