mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 11:14:21 +01:00
This commit is contained in:
parent
32694808f7
commit
644ed90453
3 changed files with 15 additions and 2 deletions
|
|
@ -97,8 +97,13 @@
|
|||
|
||||
.b3-text-field {
|
||||
transition: var(--b3-width-transition);
|
||||
overflow-x: hidden;
|
||||
outline: none;
|
||||
white-space: nowrap;
|
||||
overflow: auto;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2388,7 +2388,7 @@ export class WYSIWYG {
|
|||
|
||||
this.element.addEventListener("paste", (event: ClipboardEvent & { target: HTMLElement }) => {
|
||||
// https://github.com/siyuan-note/siyuan/issues/11241
|
||||
if (event.target.localName === "input" && event.target.getAttribute("data-type") === "av-search") {
|
||||
if (event.target.getAttribute("data-type") === "av-search") {
|
||||
return;
|
||||
}
|
||||
if (protyle.disabled) {
|
||||
|
|
|
|||
|
|
@ -97,6 +97,14 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
if (event.target.getAttribute("data-type") === "av-search") {
|
||||
if (matchHotKey("⌘A", event)) {
|
||||
event.preventDefault();
|
||||
getSelection().getRangeAt(0).selectNodeContents(event.target);
|
||||
}
|
||||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
if (protyle.disabled || !protyle.selectElement.classList.contains("fn__none")) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue