From a04aa7fd2244da9d9247e9b2d9ba3c8d731b6887 Mon Sep 17 00:00:00 2001 From: Pariring Date: Sun, 6 Nov 2022 00:29:37 +0900 Subject: [PATCH] chore: check focused only on pressed event --- Runtime/SkyHookManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/SkyHookManager.cs b/Runtime/SkyHookManager.cs index 232d6ae..ebaaefb 100644 --- a/Runtime/SkyHookManager.cs +++ b/Runtime/SkyHookManager.cs @@ -49,7 +49,7 @@ namespace SkyHook private void HookCallback(SkyHookEvent ev) { - if (requireFocus && !IsFocused) + if (requireFocus && !IsFocused && ev.Type == EventType.KeyPressed) { return; }