Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support toolbar configuration hotkeys returned by updateProtyleToolbar #13277

Closed
Achuan-2 opened this issue Nov 24, 2024 · 1 comment
Closed
Assignees
Milestone

Comments

@Achuan-2
Copy link
Member

Achuan-2 commented Nov 24, 2024

    updateProtyleToolbar(toolbar: Array<string | IMenuItem>) {
        toolbar.push(
            {
                name: "footnote",
                icon: "iconFootnote",
                hotkey: "⇧⌘F",
                tipPosition: "n",
                tip: this.i18n.tips,
                click: (protyle: Protyle) => {
                    this.protyle = protyle.protyle;
                    this.addMemoBlock(this.protyle);
                }
            }
        );
        return toolbar;
    }

在插件和通用里都看不到插件添加的快捷键
PixPin_2024-11-24_12-49-22

@Vanessa219 Vanessa219 transferred this issue from siyuan-note/plugin-sample Nov 26, 2024
@Vanessa219 Vanessa219 changed the title updateProtyleToolbar 添加工具栏按钮,设置快捷键,无法在设置里查看和修改 Support toolbar configuration hotkeys returned by updateProtyleToolbar Nov 26, 2024
@Vanessa219 Vanessa219 self-assigned this Nov 26, 2024
@Vanessa219 Vanessa219 added this to the 3.1.14 milestone Nov 26, 2024
Vanessa219 added a commit that referenced this issue Nov 26, 2024
@Achuan-2
Copy link
Member Author

V姐辛苦🙇‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants