mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-11 11:18:50 +01:00
This commit is contained in:
parent
65920afeeb
commit
4c7a01a911
6 changed files with 8 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ export const commandPanel = (app: App) => {
|
|||
plugin.commands.forEach(command => {
|
||||
const liElement = document.createElement("li");
|
||||
liElement.classList.add("b3-list-item");
|
||||
liElement.innerHTML = `<span class="b3-list-item__text">${command.langText || plugin.i18n[command.langKey]}</span>
|
||||
liElement.innerHTML = `<span class="b3-list-item__text">${plugin.displayName}: ${command.langText || plugin.i18n[command.langKey]}</span>
|
||||
<span class="b3-list-item__meta">${updateHotkeyTip(command.customHotkey)}</span>`;
|
||||
liElement.addEventListener("click", () => {
|
||||
command.callback();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue