Compare commits
2 Commits
c1d73de3b5
...
9d4ae6aa58
Author | SHA1 | Date |
---|---|---|
paring | 9d4ae6aa58 | |
paring | a04aa7fd22 |
|
@ -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;
|
||||
}
|
||||
|
|
Reference in New Issue