Skip to content

The global shortcut key of the plugin cannot be bound again #14582

Closed
@Wetoria

Description

@Wetoria

插件全局快捷键无法再次绑定

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

当绑定了全局快捷键以后,更换或者删除已有快捷键,不能再次绑定原有快捷键,需要重启app才能重新绑定。

复现方式:设置 - 快捷键 - 叶归 - 一键记事,绑定任意快捷键,删除,再次绑定前一步的快捷键。

此时该快捷键没有任何反应,必须重启 app 才能重新绑定。感觉应该是全局快捷键在更新时,没有清理 electron 中绑定的快捷键。

Expected result

不需要重启也可以重新设置

Screenshot or screen recording presentation

No response

Version environment

- Version: 
- Operating System: 
- Browser (if used):

Log file

More information

No response

Activity

TCOTC

TCOTC commented on Apr 12, 2025

@TCOTC
Contributor

只有叶归插件才有这个问题是吗?内置的快捷键和我的插件都没重现问题

Wetoria

Wetoria commented on Apr 12, 2025

@Wetoria
Author

只有叶归插件才有这个问题是吗

不确定,在写文档,没做全面测试。

简单测试了一下是【只有一键记事是有这个问题】,感觉应该是插件中使用了 globalCallback 的会有。

测了叶归【开/关插件】的快捷键,是没有这个问题,唯一区别是 globalCallback

added a commit that references this issue on Apr 14, 2025
Vanessa219

Vanessa219 commented on Apr 14, 2025

@Vanessa219
Member

我的是删除后就无法再次绑定,表现有点不一致,还麻烦再看看。

added this to the 3.1.28 milestone on Apr 14, 2025
changed the title [-]全局快捷键问题[/-] [+]插件全局快捷键无法再次绑定[/+] on Apr 14, 2025
changed the title [-]插件全局快捷键无法再次绑定[/-] [+]The global shortcut key of the plugin cannot be bound again[/+] on Apr 14, 2025
Wetoria

Wetoria commented on Apr 15, 2025

@Wetoria
Author

测了一下dev版本,能够再次绑定了。

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @Vanessa219@Wetoria@TCOTC

      Issue actions

        The global shortcut key of the plugin cannot be bound again · Issue #14582 · siyuan-note/siyuan