diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts index 577bb311e..f1cfee9a7 100644 --- a/app/src/protyle/hint/index.ts +++ b/app/src/protyle/hint/index.ts @@ -172,9 +172,9 @@ ${unicode2Emoji(emoji.unicode, true)}`; return; } // https://github.com/siyuan-note/siyuan/issues/5083 - if (!isMobile() && (this.splitChar === "/" || this.splitChar === "、")) { + if (this.splitChar === "/" || this.splitChar === "、") { clearTimeout(this.timeId); - if (this.enableSlash) { + if (this.enableSlash && !isMobile()) { this.genHTML(hintSlash(key, protyle), protyle); } return; @@ -201,7 +201,7 @@ ${unicode2Emoji(emoji.unicode, true)}`; } } - public bindUploadEvent (protyle:IProtyle, element:HTMLElement) { + public bindUploadEvent(protyle: IProtyle, element: HTMLElement) { const uploadElement = element.querySelector('input[type="file"]'); if (uploadElement) { uploadElement.addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => {