diff --git a/app/src/boot/globalEvent/commandPanel.ts b/app/src/boot/globalEvent/commandPanel.ts index 53384be3f..354f1a5ca 100644 --- a/app/src/boot/globalEvent/commandPanel.ts +++ b/app/src/boot/globalEvent/commandPanel.ts @@ -37,14 +37,16 @@ export const commandPanel = (app: App) => { dialog.element.setAttribute("data-key", Constants.DIALOG_COMMANDPANEL); const listElement = dialog.element.querySelector("#commands"); /// #if !MOBILE -// let html = "" -// Object.keys(window.siyuan.config.keymap.general).forEach((key) => { -// html += `
  • -// ${window.siyuan.languages[key]} -// ${updateHotkeyTip(window.siyuan.config.keymap.general[key].custom)} -//
  • `; -// }); -// listElement.insertAdjacentHTML("beforeend", html); + let html = "" + Object.keys(window.siyuan.config.keymap.general).forEach((key) => { + if (["addToDatabase"].includes(key)) { + html += `
  • + ${window.siyuan.languages[key]} + ${updateHotkeyTip(window.siyuan.config.keymap.general[key].custom)} +
  • `; + } + }); + listElement.insertAdjacentHTML("beforeend", html); /// #endif app.plugins.forEach(plugin => { plugin.commands.forEach(command => { diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts index 59e51baaa..763866767 100644 --- a/app/src/layout/dock/Files.ts +++ b/app/src/layout/dock/Files.ts @@ -360,10 +360,6 @@ export class Files extends Model { } target = target.parentElement; } - } else { - this.element.querySelectorAll(".b3-list-item--focus").forEach((item: HTMLElement) => { - item.classList.remove("b3-list-item--focus"); - }); } if (needFocus) { setPanelFocus(this.element.parentElement);