Table of Contents

Method ApplyModifiersAndEventType

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

ApplyModifiersAndEventType(string, Key)

Parses a kitty-extended modifier field that may contain an event type suffix. The field format is modifiers or modifiers:event_type.

protected static Key ApplyModifiersAndEventType(string modifierField, Key key)

Parameters

modifierField string

The raw modifier field string (e.g. "5" or "1:3").

key Key

The base key to apply modifiers to.

Returns

Key

The key with modifiers and event type applied, or null if parsing fails.