An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Avoid automatic focus in mobile database settings https://github.com/siyuan-note/siyuan/issues/20090
Daniel32162c769153
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.tsindex 8a30d47274..90d23ddffc 100644--- a/app/src/protyle/render/av/col.ts+++ b/app/src/protyle/render/av/col.ts@@ -407,7 +407,9 @@ export const bindEditEvent = (options: {inputElement.setAttribute("placeholder", `${options.data.name} ${nameElement.value}`);}});- nameElement.select();+ if (!isMobile()) {+ nameElement.select();+ }nameElement.value = colData.name;const descElement = options.menuElement.querySelector('.b3-text-field[data-type="desc"]') as HTMLTextAreaElement;nameElement.nextElementSibling.addEventListener("click", () => {diff --git a/app/src/protyle/render/av/view.ts b/app/src/protyle/render/av/view.tsindex c029240cc8..e9ab9c873b 100644--- a/app/src/protyle/render/av/view.ts+++ b/app/src/protyle/render/av/view.ts@@ -12,6 +12,7 @@ import {clearSelect} from "../../util/clear";import {getAVVisibleViewIDs, setAVVisibleViewIDs} from "./viewVisibility";import {isNotEditBlock} from "../../wysiwyg/getBlock";import {countFilterLeaves} from "./filterTree";+import {isMobile} from "../../../util/functions";export const setAVBlockVisibleViewIDs = (protyle: IProtyle,@@ -215,7 +216,9 @@ export const bindViewEvent = (options: {options.menuElement.parentElement.remove();}});- inputElement.select();+ if (!isMobile()) {+ inputElement.select();+ }inputElement.value = inputElement.dataset.value;const descElement = options.menuElement.querySelector('.b3-text-field[data-type="desc"]') as HTMLTextAreaElement;inputElement.nextElementSibling.addEventListener("click", () => {@@ -338,7 +341,9 @@ export const getViewHTML = (data: IAV) => {export const bindSwitcherEvent = (options: { protyle: IProtyle, menuElement: Element, blockElement: Element }) => {const inputElement = options.menuElement.querySelector(".b3-text-field") as HTMLInputElement;- inputElement.focus();+ if (!isMobile()) {+ inputElement.focus();+ }inputElement.addEventListener("keydown", (event) => {event.stopPropagation();if (event.isComposing) {