Type: Whenable
A Whenable is what When calls an object that returns itself after executing a method on it. This allows for chaining.
The When() function returns a Whenable when called and allows you to start calling each of its methods in a chain, ultimately to register a shortcut and create a ShortcutController with Execute() or register a command with Run().
A Whenable contains the following methods, documented on separate pages:
- Then()
- ModeIs() (depreciated)
- IsFocused() (depreciated)
- IsInput()
- IsPressed()
- IsReleased()
- IsHeldFor()
- Within()
- Milliseconds()
- Seconds()
- IsExecuted() (depreciated)
- Run() (depreciated)
- Execute()