mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -52,6 +52,9 @@ export const keymap = {
|
||||
});
|
||||
Object.keys(item.docks).forEach(key => {
|
||||
const dockConfig = item.docks[key].config;
|
||||
if (!dockConfig.hotkey) {
|
||||
return;
|
||||
}
|
||||
const dockKeymap = window.siyuan.config.keymap.plugin[item.name][key];
|
||||
const keyValue = updateHotkeyTip(dockKeymap.custom);
|
||||
commandHTML += `<label class="b3-list-item b3-list-item--narrow b3-list-item--hide-action">
|
||||
|
||||
@@ -140,6 +140,9 @@ const mergePluginHotkey = (plugin: Plugin) => {
|
||||
}
|
||||
Object.keys(plugin.docks).forEach(dockKey => {
|
||||
const dock = plugin.docks[dockKey];
|
||||
if (!dock.config.hotkey) {
|
||||
return;
|
||||
}
|
||||
if (!window.siyuan.config.keymap.plugin[plugin.name]) {
|
||||
window.siyuan.config.keymap.plugin[plugin.name] = {
|
||||
[dockKey]: {
|
||||
|
||||
Reference in New Issue
Block a user