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);
/// #if !BROWSER && !MOBILE
/// #if !BROWSER
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.pasteAsPlainText,
accelerator: "⇧⌘V",

View file

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

View file

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