Shortcuts Hide/Show Bug
A demo project which demonstrate a shortcuts bug (I had it on windows 10).
Solution
Replacing LogicalKeySet
with SingleActivator
will fix the issue.
LogicalKeySet
seems to be broken. SingleActivator
is the recommended activator class.
Versions used
Flutter: 3.7.0
window_manager: 0.3.0
OS: Windows 10
How to produce the problem
- Start app on Windows
- Press
Arrow Down
orArrow Up
Key, which will decrease or increase the Counter - Press
ESC
(Escape Key) to hide the window via window_manager - Press
Ctrl + Alt + Space
to show the window again - Now the shortcuts Arrow Up and Arrow Down don't work anymore. Type something in the textfield and press
Arrow Up
andArrow Down
will now have the default behavior.
Also shortcuts which includes Ctrl + another-key will also trigger by just press Ctrl
alone.
Workaround
Only app reload fix the problem.