mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
c810a20eef
commit
946295913d
1 changed files with 10 additions and 0 deletions
|
|
@ -96,6 +96,16 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
if (!nodeElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
// https://ld246.com/article/1694506408293
|
||||
const endElement = hasClosestBlock(range.endContainer);
|
||||
if (!matchHotKey("⌘C", event) && endElement && !nodeElement.isSameNode(endElement)) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
console.log(event);
|
||||
return;
|
||||
}
|
||||
|
||||
if (nodeElement.classList.contains("av")) {
|
||||
if (matchHotKey("⌘B", event) || matchHotKey("⌘I", event) || matchHotKey("⌘U", event)) {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue