diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.ts index e2f8db900..210d44fbd 100644 --- a/app/src/menus/commonMenuItem.ts +++ b/app/src/menus/commonMenuItem.ts @@ -32,7 +32,7 @@ const bindAttrInput = (inputElement: HTMLInputElement, confirmElement: Element) return; } if (matchHotKey("⌘↩", event)) { - confirmElement.dispatchEvent(new CustomEvent("click")); + confirmElement.dispatchEvent(new CustomEvent("click", {detail: "confirm"})); event.stopPropagation(); event.preventDefault(); } @@ -161,6 +161,7 @@ export const openFileWechatNotify = (protyle: IProtyle) => { const genAttr = (attrs: IObject, focusName = "bookmark", cb: (dialog: Dialog, rms: string[]) => void) => { let customHTML = ""; let notifyHTML = ""; + let avHTML = ""; const range = getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : null; Object.keys(attrs).forEach(item => { if ("custom-riff-decks" === item) { @@ -171,6 +172,15 @@ const genAttr = (attrs: IObject, focusName = "bookmark", cb: (dialog: Dialog, rm ${window.siyuan.languages.wechatReminder}
+`; + } else if (item.indexOf("custom-av") > -1) { + avHTML += ``; } else if (item.indexOf("custom") > -1) { customHTML += `