mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
5937c14e2f
commit
0770b160ff
2 changed files with 6 additions and 0 deletions
|
|
@ -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]: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue