API

Class FlowGraphKeyboardEventBlockAbstract

Shared base class for keyboard event blocks (KeyDown / KeyUp).

Provides a key input filter, output data connections for the key code, key string, modifier states, and a platform-aware commandOrCtrl flag. Subclasses only need to set their event type and class name.

Hierarchy (View Summary)

Index
altKey: FlowGraphDataConnection<boolean>

Output connection: whether the Alt key (Option on macOS) was held.

commandOrCtrl: FlowGraphDataConnection<boolean>

Output connection: platform-aware "command or control" modifier. True when Meta (Cmd) is held on macOS, or Ctrl is held on Windows/Linux.

ctrlKey: FlowGraphDataConnection<boolean>

Output connection: whether the Ctrl key was held.

key: FlowGraphDataConnection<string>

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.

keyCode: FlowGraphDataConnection<string>

Output connection: the KeyboardEvent.code of the key.

keyValue: FlowGraphDataConnection<string>

Output connection: the KeyboardEvent.key string (printable character or key name).

metaKey: FlowGraphDataConnection<boolean>

Output connection: whether the Meta key (Windows / Cmd) was held.

shiftKey: FlowGraphDataConnection<boolean>

Output connection: whether the Shift key was held.