This commit is contained in:
parent
2b9a618133
commit
8ba3ab0add
3 changed files with 4 additions and 4 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue