Vanessa 2023-01-31 21:08:48 +08:00
parent 2b9a618133
commit 8ba3ab0add
3 changed files with 4 additions and 4 deletions

View file

@ -365,7 +365,7 @@ export const contentMenu = (protyle: IProtyle, nodeElement: Element) => {
} }
} }
}).element); }).element);
/// #if !BROWSER && !MOBILE /// #if !BROWSER
window.siyuan.menus.menu.append(new MenuItem({ window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.pasteAsPlainText, label: window.siyuan.languages.pasteAsPlainText,
accelerator: "⇧⌘V", accelerator: "⇧⌘V",

View file

@ -49,9 +49,9 @@ export const pasteAsPlainText = async (protyle: IProtyle) => {
if (localFiles.length > 0) { if (localFiles.length > 0) {
uploadLocalFiles(localFiles, protyle, false); uploadLocalFiles(localFiles, protyle, false);
writeText(""); writeText("");
} else {
getCurrentWindow().webContents.pasteAndMatchStyle();
} }
/// #else
getCurrentWindow().webContents.pasteAndMatchStyle();
/// #endif /// #endif
}; };

View file

@ -1620,7 +1620,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
} }
/// #endif /// #endif
/// #if !BROWSER && !MOBILE /// #if !BROWSER
if (matchHotKey("⇧⌘V", event)) { if (matchHotKey("⇧⌘V", event)) {
event.returnValue = false; event.returnValue = false;
event.preventDefault(); event.preventDefault();