mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-11 19:28:50 +01:00
This commit is contained in:
parent
a6f80dfcbd
commit
dc3889b5b3
2 changed files with 28 additions and 1 deletions
|
|
@ -26,7 +26,11 @@ export const commandPanel = (app: App) => {
|
|||
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();
|
||||
if (command.callback) {
|
||||
command.callback();
|
||||
} else if (command.globalCallback) {
|
||||
command.globalCallback();
|
||||
}
|
||||
dialog.destroy();
|
||||
});
|
||||
listElement.insertAdjacentElement("beforeend", liElement);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue