Compare commits

...

2 Commits

Author SHA1 Message Date
paring 9d4ae6aa58
fix: typo 2022-11-06 00:29:50 +09:00
paring a04aa7fd22
chore: check focused only on pressed event 2022-11-06 00:29:37 +09:00
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ namespace SkyHook
public static readonly UnityEvent<SkyHookEvent> KeyUpdated = new();
/// <summary>
/// The instance of sky hook manager. The instance will be crated if it does not exist
/// The instance of sky hook manager. The instance will be created if it does not exist
/// </summary>
// ReSharper disable once MemberCanBePrivate.Global
public static SkyHookManager Instance
@ -49,7 +49,7 @@ namespace SkyHook
private void HookCallback(SkyHookEvent ev)
{
if (requireFocus && !IsFocused)
if (requireFocus && !IsFocused && ev.Type == EventType.KeyPressed)
{
return;
}