chore: check focused only on pressed event

develop
paring 2022-11-06 00:29:37 +09:00
parent c1d73de3b5
commit a04aa7fd22
Signed by: pikokr
GPG Key ID: 2C097B03E9D823C4
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ namespace SkyHook
private void HookCallback(SkyHookEvent ev)
{
if (requireFocus && !IsFocused)
if (requireFocus && !IsFocused && ev.Type == EventType.KeyPressed)
{
return;
}