mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Reset KeyState when loss focus
This commit is contained in:
parent
05dbe94f53
commit
0f5523653a
1 changed files with 5 additions and 1 deletions
|
|
@ -44,12 +44,16 @@ namespace Flow.Launcher
|
|||
LostFocus += (_, _) =>
|
||||
{
|
||||
PluginManager.API.RemoveGlobalKeyboardCallback(callback);
|
||||
state.AltPressed = false;
|
||||
state.CtrlPressed = false;
|
||||
state.ShiftPressed = false;
|
||||
state.WinPressed = false;
|
||||
};
|
||||
}
|
||||
|
||||
private CancellationTokenSource hotkeyUpdateSource;
|
||||
|
||||
private SpecialKeyState state = new SpecialKeyState();
|
||||
private SpecialKeyState state = new();
|
||||
|
||||
private bool TbHotkey_OnPreviewKeyDown(int keyevent, int vkcode, SpecialKeyState dummy)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue