Interface / Gesture

Key Press

Detect a key presses. To detect a key press the view needs to be in focus.

iOSmacOSvisionOS

Inlets

View

View

Allow Repeat

Bool

Outlets

View

View

Keys

String
List

Flags

String
List

Active

Bool

Key Down

Action

Key Up

Action

Key Repeat

Action

Properties

Allowed Keys

String Array

An empty list will match any key.

Default
[]

Allow Repeat

Bool

When pressing the key over time, it can repeat.

Default
false
Inlet
Allow Repeat

Version history

  1. Added in 2.1.0