HotkeyAction.IsActive property
Optional “only while” gate, polled on the main thread every framework tick. While it returns false the action is dormant: a press does NOT invoke the callback, and the key is NOT held back from the game even when Settings → Hotkeys “Don’t pass hotkeys through to the game” is on — the press reaches the game as if nothing were bound. While it returns true (or when null, the default) the action behaves exactly as before. Use it for keys that only mean something while your window is open (e.g. () => window.IsShown). Keep it cheap and allocation-free. A throw counts as false. The binding itself is unaffected (still listed, still claims its chord). Since 2.26.0 (an init property, not a constructor parameter, so existing callers keep binding).
public Func<bool>? IsActive { get; set; }See Also
Section titled “See Also”- record HotkeyAction
- namespace Stellar.Abstractions.Domain