Vanessa 2026-02-13 12:04:20 +08:00
parent 32694808f7
commit 644ed90453
3 changed files with 15 additions and 2 deletions

View file

@ -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;
}
}
}

View file

@ -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) {

View file

@ -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();