mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
580209b165
commit
0606ee127e
2 changed files with 14 additions and 3 deletions
|
|
@ -158,7 +158,7 @@ const mergePluginHotkey = (plugin: Plugin) => {
|
|||
}
|
||||
window.siyuan.config.keymap.plugin[plugin.name][dockKey]["default"] = dock.config.hotkey;
|
||||
}
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
export const afterLoadPlugin = (plugin: Plugin) => {
|
||||
|
|
@ -222,7 +222,7 @@ export const afterLoadPlugin = (plugin: Plugin) => {
|
|||
});
|
||||
Object.keys(plugin.docks).forEach(key => {
|
||||
const dock = plugin.docks[key];
|
||||
const hotkey = window.siyuan.config.keymap.plugin[plugin.name][key].custom
|
||||
const hotkey = window.siyuan.config.keymap.plugin[plugin.name][key].custom;
|
||||
if (dock.config.position.startsWith("Left")) {
|
||||
window.siyuan.layout.leftDock.genButton([{
|
||||
type: key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue