fix: allows logseq related shortcut combinations (t t) to work

This commit is contained in:
Peng Xiao
2022-12-06 18:07:16 +08:00
committed by Tienson Qin
parent 2a96cf6c2d
commit 8a9d254068

View File

@@ -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()
}
},
}
})