feat: Markdown, HTML & JSON export options for super notes (#2054)

This commit is contained in:
Aman Harwara
2022-11-25 13:58:44 +05:30
committed by GitHub
parent ff1d71c2f8
commit dcc8cfbe45
9 changed files with 268 additions and 61 deletions

View File

@@ -165,7 +165,7 @@ export class KeyboardService {
}
}
public triggerCommand(command: KeyboardCommand): void {
public triggerCommand(command: KeyboardCommand, data?: unknown): void {
for (const observer of this.commandHandlers) {
if (observer.command !== command) {
continue
@@ -173,7 +173,7 @@ export class KeyboardService {
const callback = observer.onKeyDown || observer.onKeyUp
if (callback) {
const exclusive = callback(new KeyboardEvent('command-trigger'))
const exclusive = callback(new KeyboardEvent('command-trigger'), data)
if (exclusive) {
return
}