RightAltMode

sealed class RightAltMode(source)

Controls how the right-alt key (AltGr) is interpreted by the terminal keyboard handler.

A future AUTO value is reserved for when the Android system exposes the distinction between AltGr and Meta natively, at which point the correct behavior can be inferred automatically from the active keyboard layout.

Inheritors

Types

Link copied to clipboard

Right-alt is passed to android.view.KeyCharacterMap as a character-level modifier, allowing international keyboard layouts (e.g. Swiss German { via AltGr+APOSTROPHE) to produce the correct characters. This is the default.

Link copied to clipboard
data object Meta : RightAltMode

Right-alt is treated as a terminal Meta modifier (escape prefix), identical to left-alt. Use this for US keyboard users who want right-alt to behave like left-alt.