From 40c56d1400484dcaef36691393ba89ee12e15c61 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 27 Nov 2022 17:46:36 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6729 --- app/src/util/globalShortcut.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts index 7c18fae87..db50714e4 100644 --- a/app/src/util/globalShortcut.ts +++ b/app/src/util/globalShortcut.ts @@ -281,6 +281,10 @@ export const globalShortcut = () => { currentLiElement.parentElement.parentElement.nextElementSibling.innerHTML = currentLiElement.querySelector(".b3-list-item__text").innerHTML; } } + const originalElement = switchDialog.element.querySelector('[data-original="true"]'); + if (originalElement) { + originalElement.removeAttribute("data-original") + } } else if (event.key === "Control") { let currentLiElement = switchDialog.element.querySelector(".b3-list-item--focus"); // 快速切换时,不触发 Tab