Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/16356

Vanessad615ddaa9705
diff --git a/app/src/config/keymap.ts b/app/src/config/keymap.ts
index 4f2de59616..0f79661b74 100644
--- a/app/src/config/keymap.ts
+++ b/app/src/config/keymap.ts
@@ -143,7 +143,7 @@ export const keymap = {
<div class="fn__space"></div>
<label class="b3-form__icon fn__block searchByKeyLabel">
<svg class="b3-form__icon-icon"><use xlink:href="#iconKeymap"></use></svg>
- <input id="searchByKey" data-value="" class="b3-form__icon-input b3-text-field fn__block" spellcheck="false" placeholder="${window.siyuan.languages.keymap}">
+ <input id="searchByKey" data-keymap="" class="b3-form__icon-input b3-text-field fn__block" spellcheck="false" placeholder="${window.siyuan.languages.keymap}">
</label>
<div class="fn__space"></div>
<button id="clearSearchBtn" class="b3-button b3-button--outline fn__flex-center fn__size200">
@@ -337,13 +337,13 @@ export const keymap = {
const searchElement = keymap.element.querySelector("#keymapInput") as HTMLInputElement;
const searchKeymapElement = keymap.element.querySelector("#searchByKey") as HTMLInputElement;
searchElement.addEventListener("compositionend", () => {
- keymap.search(searchElement.value, searchKeymapElement.dataset.value);
+ keymap.search(searchElement.value, searchKeymapElement.dataset.keymap);
});
searchElement.addEventListener("input", (event: InputEvent) => {
if (event.isComposing) {
return;
}
- keymap.search(searchElement.value, searchKeymapElement.dataset.value);
+ keymap.search(searchElement.value, searchKeymapElement.dataset.keymap);
});
/// #if !BROWSER
searchKeymapElement.addEventListener("focus", () => {