Skip to content

fix: 修复静默模式切换后快捷键和拖拽节点状态不更新问题 #1491

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

Merged
merged 4 commits into from
Jan 31, 2024

Conversation

DymoneLewis
Copy link
Collaborator

@DymoneLewis DymoneLewis changed the title fix: 修复静默模式切换后快捷键和拖拽节点状态不更新问题 fix: 修复静默模式切换后快捷键和拖拽节点状态不更新问题(#1460 #1470) Jan 31, 2024
@DymoneLewis DymoneLewis changed the title fix: 修复静默模式切换后快捷键和拖拽节点状态不更新问题(#1460 #1470) fix: 修复静默模式切换后快捷键和拖拽节点状态不更新问题 Jan 31, 2024
// 然后再初始化自定义快捷键,自定义快捷键可以覆盖默认快捷键.
// 插件最后初始化。方便插件强制覆盖内置快捷键
this.keyboard.initShortcuts();
this.options.isSilentMode ? this.keyboard.disable() : this.keyboard.enable(true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议在 Keyboard 初始化时根据 lf.options.silentMode 进行判断初始化

boyongjiong
boyongjiong previously approved these changes Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants