Skip to content

Commit

Permalink
fix: all tldraw shortcut can still be handled by logseq
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 authored and tiensonqin committed Dec 16, 2022
1 parent df2845b commit e5cfde0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tldraw/packages/core/src/lib/TLApp/TLApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
},
}
})
Expand Down

0 comments on commit e5cfde0

Please sign in to comment.