Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/9475

Vanessa654c2a47a7a1
diff --git a/app/src/config/keymap.ts b/app/src/config/keymap.ts
index 124af3ce35..093a470b2d 100644
--- a/app/src/config/keymap.ts
+++ b/app/src/config/keymap.ts
@@ -374,7 +374,7 @@ export const keymap = {
hasConflict = true;
}
Array.from(keymap.element.querySelectorAll("label.b3-list-item input")).find((inputItem: HTMLElement) => {
- if (!inputItem.isSameNode(this) && inputItem.getAttribute("data-value") === adoptKeymapStr) {
+ if (!inputItem.isSameNode(this) && inputItem.getAttribute("data-value") === keymapStr) {
const inputValueList = inputItem.getAttribute("data-key").split(Constants.ZWSP);
if (inputValueList[1] === "list") {
inputValueList[1] = "list1";
@@ -388,10 +388,10 @@ export const keymap = {
}
});
if (hasConflict) {
- this.value = this.getAttribute("data-value");
+ this.value = updateHotkeyTip(this.getAttribute("data-value"));
return;
}
- this.setAttribute("data-value", adoptKeymapStr);
+ this.setAttribute("data-value", keymapStr);
this.value = adoptKeymapStr;
keymap._setkeymap(app);
}, 1000);