hotkey_manager icon indicating copy to clipboard operation
hotkey_manager copied to clipboard

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

Open Allenxuxu opened this issue 3 years ago • 0 comments

macOS

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

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

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

 Future.delayed(const Duration(milliseconds: 200), () {
    windowManager.hide();
  });

Allenxuxu avatar Oct 22 '22 10:10 Allenxuxu