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

[BUG] 在 inApp 级别的快捷键回调中执行 windowManager.hide(),然后再 windowManager.show 发现 inApp 级别的快捷键都失效了。 #20

Open
Allenxuxu opened this issue Oct 22, 2022 · 0 comments

Comments

@Allenxuxu
Copy link

Allenxuxu commented Oct 22, 2022

macOS

我注册了一个 inApp 级别的快捷键,在其回调函数中执行了 windowManager.hide() 。
同时我还注册一个 system 级别的快捷键,通过回调控制 windowManager 的 hide 和 show 。

通过 inApp 级别的快捷键,hide 软件之后再次 show ,发现其他 inApp 快捷键都失效或者不正常工作了。

我在回调里,通过 Future.delayed 执行 hide 就不会出现这种情况。

 Future.delayed(const Duration(milliseconds: 200), () {
    windowManager.hide();
  });
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

No branches or pull requests

1 participant