Click or drag to resize

InputFieldExAddKeyHandler Method (KeyCode, Action, EventModifiers, EventModifiers)

Hook into a key combination.

Namespace:  Kit.UI.Widgets
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public InputFieldExKeyHandler AddKeyHandler(
	KeyCode key,
	Action action,
	EventModifiers modifiers = EventModifiers.None,
	EventModifiers disregard = EventModifiers.None
)
Request Example View Source

Parameters

key
Type: KeyCode
The basic key to handle.
action
Type: SystemAction
Method to call when the combination is pressed.
modifiers (Optional)
Type: EventModifiers
Key modifiers that should be pressed with it.
disregard (Optional)
Type: EventModifiers
Key modifiers that should be dis-regarded.

Return Value

Type: InputFieldExKeyHandler
See Also