ModifierManager

Manages modifier key state for terminal keyboard input. This can be used to combine some external state about the Ctrl, Alt, and Shift keys. For instance, combining a keyboard with an on-screen button.

See also

Functions

Link copied to clipboard
abstract fun clearTransients()

Clear transient modifiers after a key press.

Link copied to clipboard
abstract fun isAltActive(): Boolean

Check if Alt modifier is active (transient or locked).

Link copied to clipboard
abstract fun isCtrlActive(): Boolean

Check if Ctrl modifier is active (transient or locked).

Link copied to clipboard
abstract fun isShiftActive(): Boolean

Check if Shift modifier is active (transient or locked).