mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
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);
|
}).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",
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
/// #else
|
|
||||||
getCurrentWindow().webContents.pasteAndMatchStyle();
|
getCurrentWindow().webContents.pasteAndMatchStyle();
|
||||||
|
}
|
||||||
/// #endif
|
/// #endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue