diff --git a/app/src/boot/onGetConfig.ts b/app/src/boot/onGetConfig.ts index 5e384cd8c..36be70ac0 100644 --- a/app/src/boot/onGetConfig.ts +++ b/app/src/boot/onGetConfig.ts @@ -201,9 +201,7 @@ export const initWindow = async (app: App) => { ipcRenderer.send(Constants.SIYUAN_EVENT, "onEvent"); ipcRenderer.on(Constants.SIYUAN_EVENT, (event, cmd) => { if (cmd === "focus") { - if (getSelection().rangeCount > 0) { - focusByRange(getSelection().getRangeAt(0)); - } + // 由于 https://github.com/siyuan-note/siyuan/issues/10060 和新版 electron 应用切出再切进会保持光标,故移除 focus window.siyuan.altIsPressed = false; window.siyuan.ctrlIsPressed = false; window.siyuan.shiftIsPressed = false; diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts index cbb8170a7..e5df82cb0 100644 --- a/app/src/card/openCard.ts +++ b/app/src/card/openCard.ts @@ -50,9 +50,9 @@ export const genCardHTML = (options: {
-