Class FlowGraphKeyDownEventBlock
Hierarchy (View Summary)
- FlowGraphKeyboardEventBlock
- FlowGraphKeyDownEventBlock
Constructors
constructor
-
new FlowGraphKeyDownEventBlock(
config?: IFlowGraphKeyDownEventBlockConfiguration,
): FlowGraphKeyDownEventBlockCreates a new FlowGraphKeyDownEventBlock.
Parameters
Optionalconfig: IFlowGraphKeyDownEventBlockConfigurationoptional configuration
Returns FlowGraphKeyDownEventBlock
Properties
Readonlyalt Key
Output connection: whether the Alt key (Option on macOS) was held.
Readonlycommand Or Ctrl
Output connection: platform-aware "command or control" modifier. True when Meta (Cmd) is held on macOS, or Ctrl is held on Windows/Linux.
Readonlyctrl Key
Output connection: whether the Ctrl key was held.
Readonlyis Repeat
Output connection: whether this is an auto-repeat event (key held down).
Readonlykey
Input connection: optional key code to filter on (e.g. "KeyA", "Space", "ShiftLeft").
Uses KeyboardEvent.code values. Leave empty / disconnected to fire on any key event.
Readonlykey Code
Output connection: the KeyboardEvent.code of the key.
Readonlykey Value
Output connection: the KeyboardEvent.key string (printable character or key name).
Readonlymeta Key
Output connection: whether the Meta key (Windows / Cmd) was held.
Readonlyshift Key
Output connection: whether the Shift key was held.
A keyboard event block that fires when a key is pressed down. Extends FlowGraphKeyboardEventBlock with an
isRepeatoutput and anignoreRepeatconfiguration option.